Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some fixes #317

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
163b6e1
checkpoint for computer switching
tzukpolinsky Nov 1, 2023
914aef2
1. added the directionality by body part to the config creation
tzukpolinsky Nov 8, 2023
9559069
Merge remote-tracking branch 'origin/master'
tzukpolinsky Nov 8, 2023
4b98366
preventing error in config creation
tzukpolinsky Nov 12, 2023
1094983
preventing error in seaborn when creating plots, because in seabrom 0…
tzukpolinsky Nov 12, 2023
c4ffdac
I create my body part directionality in a sub folder inside the body_…
tzukpolinsky Nov 13, 2023
219f7cf
I create my body part directionality in a sub folder inside the body_…
tzukpolinsky Nov 13, 2023
ec25329
I create my body part directionality in a sub folder inside the body_…
tzukpolinsky Nov 13, 2023
b374433
changes:
tzukpolinsky Dec 3, 2023
29c3f10
changes:
tzukpolinsky Dec 7, 2023
8d4888c
added max depth and cleaned duplicated values in enums
tzukpolinsky Dec 21, 2023
b965472
Merge pull request #1
tzukpolinsky Dec 21, 2023
6c6bc80
Merge remote-tracking branch 'upstream/master'
tzukpolinsky Dec 21, 2023
d7c31ff
trying to merge
tzukpolinsky Dec 21, 2023
0163e02
Merge branch 'master' of https://github.com/tzukpolinsky/simba
tzukpolinsky Dec 21, 2023
a43553b
trying to merge
tzukpolinsky Dec 23, 2023
0a54a82
Merge branch 'master' of https://github.com/sgoldenlab/simba
tzukpolinsky Dec 23, 2023
e826fda
Merge branch 'master' of https://github.com/sgoldenlab/simba
tzukpolinsky Jan 1, 2024
3899965
fixing missing files paths for app visibility
tzukpolinsky Jan 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions simba/mixins/train_model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
from simba.utils.checks import (check_float, check_if_dir_exists, check_int,
check_str)
from simba.utils.data import create_color_palette, detect_bouts
from simba.utils.enums import ConfigKey, Defaults, Dtypes, MetaKeys
from simba.utils.enums import ConfigKey, Defaults, Dtypes, MachineLearningMetaKeys
from simba.utils.errors import (ClassifierInferenceError, ColumnNotFoundError,
CorruptedFileError, DataHeaderError,
FaultyTrainingSetError,
Expand Down Expand Up @@ -921,16 +921,16 @@ def print_machine_model_information(self, model_dict: dict) -> None:
"""

table_view = [
["Model name", model_dict[MetaKeys.CLF_NAME.value]],
["Model name", model_dict[MachineLearningMetaKeys.CLASSIFIER.value]],
["Ensemble method", "RF"],
["Estimators (trees)", model_dict[MetaKeys.RF_ESTIMATORS.value]],
["Max features", model_dict[MetaKeys.RF_MAX_FEATURES.value]],
["Under sampling setting", model_dict[ConfigKey.UNDERSAMPLE_SETTING.value]],
["Under sampling ratio", model_dict[ConfigKey.UNDERSAMPLE_RATIO.value]],
["Over sampling setting", model_dict[ConfigKey.OVERSAMPLE_SETTING.value]],
["Over sampling ratio", model_dict[ConfigKey.OVERSAMPLE_RATIO.value]],
["criterion", model_dict[MetaKeys.CRITERION.value]],
["Min sample leaf", model_dict[MetaKeys.MIN_LEAF.value]],
["Estimators (trees)", model_dict[MachineLearningMetaKeys.RF_ESTIMATORS.value]],
["Max features", model_dict[MachineLearningMetaKeys.RF_MAX_FEATURES.value]],
["Under sampling setting", model_dict[MachineLearningMetaKeys.UNDERSAMPLE_SETTING.value]],
["Under sampling ratio", model_dict[MachineLearningMetaKeys.UNDERSAMPLE_RATIO.value]],
["Over sampling setting", model_dict[MachineLearningMetaKeys.OVERSAMPLE_SETTING.value]],
["Over sampling ratio", model_dict[MachineLearningMetaKeys.OVERSAMPLE_RATIO.value]],
["criterion", model_dict[MachineLearningMetaKeys.RF_CRITERION.value]],
["Min sample leaf", model_dict[MachineLearningMetaKeys.MIN_LEAF.value]],
]
table = tabulate(table_view, ["Setting", "value"], tablefmt="grid")
print(f"{table} {Defaults.STR_SPLIT_DELIMITER.value}TABLE")
Expand Down
Loading