Skip to content

Commit c849ce3

Browse files
committed
add more objectives
1 parent 1113890 commit c849ce3

61 files changed

Lines changed: 5281 additions & 423 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@ package-r/inst/c/
6363
*.pyd.*
6464

6565
*.profraw
66+
67+
# Environment variables
68+
.env

Cargo.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66

77
[package]
88
name = "perpetual"
9-
version = "1.8.0"
9+
version = "1.9.0"
1010
edition = "2024"
1111
authors = ["Mutlu Simsek <msimsek@perpetual-ml.com>", "Serkan Korkmaz <serkor1@duck.com>", "Pieter Pel <pelpieter@gmail.com>"]
1212
homepage = "https://perpetual-ml.com"
@@ -45,6 +45,7 @@ reqwest = { version = "0.13.2", features = ["blocking"] }
4545
csv = "1.4.0"
4646
chrono = "0.4.43"
4747
tempfile = "3.25.0"
48+
env_logger = "0.11.9"
4849

4950
[[bench]]
5051
name = "training_benchmark"
@@ -57,3 +58,11 @@ ignore-filename = [
5758
"package-python\\\\.*",
5859
"package-r\\\\.*",
5960
]
61+
62+
[[example]]
63+
name = "march_machine_learning_mania_2026"
64+
path = "examples/kaggle/march_machine_learning_mania_2026/march_machine_learning_mania_2026.rs"
65+
66+
[[example]]
67+
name = "predicting_heart_disease"
68+
path = "examples/kaggle/predicting_heart_disease/predicting_heart_disease.rs"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import os
2+
3+
from dotenv import load_dotenv
4+
5+
env_path = os.path.join(os.path.dirname(__file__), "../../../.env")
6+
load_dotenv(dotenv_path=env_path)
7+
8+
os.environ["KAGGLE_USERNAME"] = os.getenv("KAGGLE_USERNAME")
9+
os.environ["KAGGLE_KEY"] = os.getenv("KAGGLE_API_TOKEN")
10+
11+
import kaggle # noqa: E402
12+
13+
# Since this script runs in the directory, target is current dir
14+
target_dir = "."
15+
16+
# Authenticate and download dataset
17+
kaggle.api.authenticate()
18+
try:
19+
print("Downloading march-machine-learning-mania-2026 competition data...")
20+
kaggle.api.competition_download_files(
21+
"march-machine-learning-mania-2026", path=target_dir, quiet=False
22+
)
23+
print("Download finished. Extracting...")
24+
# Extract the zip file
25+
import zipfile
26+
27+
zip_path = f"{target_dir}/march-machine-learning-mania-2026.zip"
28+
if os.path.exists(zip_path):
29+
with zipfile.ZipFile(zip_path, "r") as zip_ref:
30+
zip_ref.extractall(target_dir)
31+
print("Extraction complete.")
32+
os.remove(zip_path) # Clean up zip
33+
else:
34+
print(f"Zip file not found at {zip_path}")
35+
36+
except Exception as e:
37+
print(f"Failed to download: {e}")

0 commit comments

Comments
 (0)