Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ignored idea files generated by pycharm * Create GridSearch class: - Import itertools - Add an __init__ function that initializes class instance - Add evaluate method that evaluates the parameters on a dataset * Fixed evaluate() in GridSearch: - tests on correct algorithm instance * Created GridSearch testing file: -Added a function to make sure the combinations returned are correct by testing its length * Updated GridSearch evaluate(): - Added best score, best parameters and best index attributes - Removed 1 attribute and added cv_results_ attribute analogous to sklearn implementation - Added tests for best attributes for RMSE and FCP measures * first draft on Non negative matrix factorization * Added verbose parameter to evaluate method: - Default to True - Added some local variables needed for verbose messages - Change the loop to enumerate to follow similar code structure * More doc for NMF, plus some tests * tests for CoClustering algorithm * update README.md * Update README.md * Added a biased version for NMF * Update CONTRIBUTING.md * update TODO.md * Change GridSearch evaluate method to accept multiple measurements: - Best attributes are now dicts with measures as keys - Change the test to adapt to the new parameters of evaluate - Add absolute value to tests * Added parameters documentation to GridSearch class and refactored GridSearch parameters - Added parameters documenation - Renamed algo parameter to algo_class - Changed default measures from ['RMSE'] to become similar to evaluate ['rmse','mae'] * Made GridSearch best attributes not case sensitive: - Removed duplicate definition of attributes - Changed definition from dict to Case insensitive dict - Added a test to make sure input parameters and output attributes are not case sensitive * Corrected if condition that might lead to un-desired situation * Added a clip option to the predict method * Added params and measures as keys for cv_results_ * Created 3 verbosity levels: - 0: Do not print anything - 1: Print params when combination starts and Mean scores when it finishes - 2: Print same info as 2 plus the score on each fold * Added best estimator attribute: - Best algorithm instance with certain measure - Gives the ability for the user to use like any other algorithm class instance - Add test for this attribute * Added documentation for the GridSearch class * ignored idea files generated by pycharm * Create GridSearch class: - Import itertools - Add an __init__ function that initializes class instance - Add evaluate method that evaluates the parameters on a dataset * Fixed evaluate() in GridSearch: - tests on correct algorithm instance * Created GridSearch testing file: -Added a function to make sure the combinations returned are correct by testing its length * Updated GridSearch evaluate(): - Added best score, best parameters and best index attributes - Removed 1 attribute and added cv_results_ attribute analogous to sklearn implementation - Added tests for best attributes for RMSE and FCP measures * Added verbose parameter to evaluate method: - Default to True - Added some local variables needed for verbose messages - Change the loop to enumerate to follow similar code structure * Change GridSearch evaluate method to accept multiple measurements: - Best attributes are now dicts with measures as keys - Change the test to adapt to the new parameters of evaluate - Add absolute value to tests * Added parameters documentation to GridSearch class and refactored GridSearch parameters - Added parameters documenation - Renamed algo parameter to algo_class - Changed default measures from ['RMSE'] to become similar to evaluate ['rmse','mae'] * Made GridSearch best attributes not case sensitive: - Removed duplicate definition of attributes - Changed definition from dict to Case insensitive dict - Added a test to make sure input parameters and output attributes are not case sensitive * Corrected if condition that might lead to un-desired situation * Added params and measures as keys for cv_results_ * Created 3 verbosity levels: - 0: Do not print anything - 1: Print params when combination starts and Mean scores when it finishes - 2: Print same info as 2 plus the score on each fold * Added best estimator attribute: - Best algorithm instance with certain measure - Gives the ability for the user to use like any other algorithm class instance - Add test for this attribute * Added documentation for the GridSearch class * Remove @classmethod attribute. Correct test cases. old evaluate method and grid search evaluate gives the best results * Added CaseInsensitiveDefaultDictForBestResults class: - It is a clone of CaseInsensitiveDefaultDict but without overriding __str__ method - Users can now print the dict output normally for the best - Replaced the usage of the CaseInsensitiveDefaultDict to CaseInsensitiveDefaultDictForBestResults inGridSearch class * Added User-Guide for GridSearch feature: - Added an example file that contains the code of the user-guide - Edited the getting started .rst file to add the guide * Refactored some parts of the code: - Used enumerate instead of index to count in loop - changes cv_results_ to defaultdict(list) - Reduced the populating of scores and parameters for 1 block * Refactored code to use evaluate() method: - No need to manually iterate over folds - Some verbose print statements avoided * Addressed a set of simple enhancements: - Reduced the number of iterations in some test functions to reduce testing time - Added reference to GridSearchCV from sklearn - fixed test_measure_is_not_case_sensitive to actually fail if we have a bad key - Added few comments - Change verbose method of GridSearch evaluate - Reduced line sizes to less than 80 chars * Changed measure to upper case from the start * Make grid search test and example PEP-8 compliant. - One import in example file is left at the end of the file on purpose * Fixed errors and warning when building docs: - Renamed GridSearch attribute by removig the underscore from the end. Solved Errors - Gave different names for code blocks. Solved warnings * Removed specifying unicode character 'u' from gridsearch test
- Loading branch information