Skip to content

Commit

Permalink
FIX copie validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoral committed Dec 17, 2024
1 parent 1d1d329 commit a4308d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
public/private data as `tar.gz` archives in dedicated OSF folders named after
the challenge.
"""
import shutil
import tarfile
import argparse
from zlib import adler32
Expand Down Expand Up @@ -124,6 +125,7 @@ def setup_data(data_path, private=False, username=None, password=None):
archive = download_split_archive_from_osf(
public_folder, split_files, data_path
)
print("Extracting the data...", end='', flush=True)
with tarfile.open(archive) as tar:
tar.extractall(data_path)

Expand All @@ -133,7 +135,8 @@ def setup_data(data_path, private=False, username=None, password=None):
for f in (data_path / "public").glob("*")]
(data_path / "public").rmdir()
archive.unlink()
(data_path / "validation.h5").symlink_to(data_path / "test.h5")
shutil.copyfile(data_path / "test.h5", data_path / "validation.h5")
print("Done.")

if private:
private_folder = get_folder(PRIVATE_PROJECT, username, password)
Expand Down
3 changes: 0 additions & 3 deletions submissions/starting_kit/estimator.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
from sklearn import set_config
from sklearn.pipeline import make_pipeline
from sklearn.compose import make_column_transformer
from sklearn.ensemble import RandomForestRegressor
from sklearn.preprocessing import OrdinalEncoder

set_config(transform_output="pandas")


class IgnoreDomain(RandomForestRegressor):
def fit(self, X, y):
Expand Down

0 comments on commit a4308d2

Please sign in to comment.