-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add five-parameter logistic function as a model option (#813)
* add five-parameter logistic function as a model * add unit test for 5PL fit model * change signature for in to match
- Loading branch information
Showing
6 changed files
with
118 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
model_type = "5PL" | ||
model_param_dict = { | ||
# ==== preprocess: normalize each feature ==== # | ||
# 'norm_type':'none', | ||
'norm_type': 'clip_0to1', # rescale to within [0, 1] | ||
|
||
# ==== postprocess: clip final quality score ==== # | ||
'score_clip':[0.0, 100.0], # clip to within [0, 100] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
feature_dict = { | ||
'SSIM_feature': ['ssim'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
PYTHONPATH=python python3 -m unittest discover -v -s python/test/ -p '*_test.py' | ||
if [ -z "$1" ]; then | ||
pattern='*_test.py' | ||
else | ||
pattern="$1" | ||
fi | ||
|
||
PYTHONPATH=python python3 -m unittest discover -v -s python/test/ -p $pattern |