Skip to content

Commit

Permalink
fix: load files in real world examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko committed Sep 24, 2024
1 parent 2b5a6eb commit e9f707b
Show file tree
Hide file tree
Showing 4 changed files with 370 additions and 271 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,15 @@
]
}
],
"source": [
"_, train_data, test_data = DataLoader(dataset_name=dataset_name).read_train_test_files(\n",
" dataset_name=dataset_name,\n",
" data_path=data_path)"
]
"source": "train_data, test_data = DataLoader(dataset_name=dataset_name, folder=data_path).load_data()"
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [],
"source": [
"import numpy as np\n",
"features = np.array(train_data[0].values.tolist()).astype(float)"
"features = np.array(train_data[0].tolist()).astype(float)"
],
"metadata": {
"collapsed": false,
Expand Down Expand Up @@ -2327,4 +2323,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,15 @@
]
}
],
"source": [
"_, train_data, test_data = DataLoader(dataset_name=dataset_name).read_train_test_files(\n",
" dataset_name=dataset_name,\n",
" data_path=data_path)"
]
"source": "train_data, test_data = DataLoader(dataset_name=dataset_name, folder=data_path).load_data()"
},
{
"cell_type": "code",
"execution_count": 13,
"outputs": [],
"source": [
"import numpy as np\n",
"features = np.array(train_data[0].values.tolist()).astype(float)"
"features = np.array(train_data[0].tolist()).astype(float)"
],
"metadata": {
"collapsed": false,
Expand Down Expand Up @@ -11689,4 +11685,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,15 @@
]
}
],
"source": [
"_, train_data, test_data = DataLoader(dataset_name=dataset_name).read_train_test_files(\n",
" dataset_name=dataset_name,\n",
" data_path=data_path)"
]
"source": "train_data, test_data = DataLoader(dataset_name=dataset_name, folder=data_path).load_data()"
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [],
"source": [
"import numpy as np\n",
"features = np.array(train_data[0].values.tolist()).astype(float)"
"features = np.array(train_data[0].tolist()).astype(float)"
],
"metadata": {
"collapsed": false,
Expand Down Expand Up @@ -884,4 +880,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}

0 comments on commit e9f707b

Please sign in to comment.