Commit f400b4b8 authored by Valerio Maggio's avatar Valerio Maggio
Browse files

removed useless comments and refined settings actually used in exps

parent 419bdfc2
"""
Script to generate Random train/test split for the TARGET-NB Dataset
to be used in combination with SVM Model in DAP.
"""
import os
......@@ -34,7 +35,7 @@ class SupportVectorMachineRunner(SupportVectorRunnerDAP):
ds_name = self.experiment_data.dataset_name \
if 'dataset_name' in self.experiment_data.keys() else self.experiment_data.DESCR
output_folder_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'out_multi_split_25', ds_name, base_foldername, folder_name)
'targetNB_multiple_splits', ds_name, base_foldername, folder_name)
os.makedirs(output_folder_path, exist_ok=True)
return output_folder_path
......@@ -75,9 +76,8 @@ def main():
dap_settings.feature_ranges = [2, 5, 10, 15, 20, 25, 50, 75, 100]
from dap.scaling import MinMaxScaler, StandardScaler
from dap.scaling import MinMaxScaler
dap_settings.feature_scaler = MinMaxScaler(feature_range=(-1, 1), copy=False)
# dap_settings.feature_scaler = StandardScaler(copy=False)
# ============================
# Model Settings (hyperparams)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment