Skip to content

Commit

Permalink
fix: ml model split data
Browse files Browse the repository at this point in the history
  • Loading branch information
aimspot committed Nov 28, 2023
1 parent 5b164e7 commit 72c9226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ODRS/ml_utils/ml_model_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
def predict(mode, classes_path, dataset_path, speed, accuracy):
file = Path(__file__).resolve()

#split_data(dataset_path, split_train_value=0.6, split_valid_value=0.35)

run_path = createRunDirectory(model='ml')

model_top = list()
Expand All @@ -37,6 +35,8 @@ def predict(mode, classes_path, dataset_path, speed, accuracy):

dataset_path_new = getDataPath(ROOT, dataset_path)

split_data(dataset_path_new, split_train_value=0.6, split_valid_value=0.35)

dataset_data = dataset_info(dataset_path_new, Path(file.parents[2]) / classes_path, run_path)

features_normalized, labels = dataProcessing(dataset_data, mode, speed, accuracy)
Expand Down

0 comments on commit 72c9226

Please sign in to comment.