A special way to tune parameter with your RP.
- Use RandomizedSearchCV to get some paraments and their scores.
- Generate dataset using paraments as features and scores as label.
- Train simple model and predict the testset.
- Output the TopK result.
Use digits dataset in sklearn.datasets.load_digits.
tool | best score |
---|---|
RandomizedSearchCV | 0.932 |
RPTune | 0.935 |
You can run this code directly to see the result.
- Python3 (May be 2 is also supported, but I haven't test it.)
- six
- numpy
- scipy
- pandas
- sklearn
from RPTune import RPTune
rpt = RPTune(your_model,param_dist)
rpt.fit(X,y)
For more details, see the code below if __name__ == '__main__':
(line 137).
Today is April Fool's Day. Many beautiful girls invited me for dinner. But I refused.
I sacrificed my precious time to do this thing.
According to the law of character conservation, this tool must be very powerful.