Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lower bound for all dependencies #98

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Version 1.1.4

## Enhancements
- Fix lower bounds of dependency versions.

## Bug-Fixes
- Don't convert BOHB runs with status 'running' (consistent with SMAC).

6 changes: 2 additions & 4 deletions examples/record/mnist_pytorch.py
Original file line number Diff line number Diff line change
@@ -63,15 +63,14 @@ def __init__(self, activation="relu", learning_rate=1e-4, dropout_rate=0.1, batc
]
)

self.accuracy = Accuracy()
self.accuracy = Accuracy(task="multiclass", num_classes=self.num_classes)

def prepare_data(self):
# download
MNIST(self.data_dir, train=True, download=True)
MNIST(self.data_dir, train=False, download=True)

def setup(self, stage=None):

# Assign train/val datasets for use in dataloaders
if stage == "fit" or stage is None:
mnist_full = MNIST(self.data_dir, train=True, transform=self.transform)
@@ -257,10 +256,9 @@ def get_configspace(seed):

# The model weights are trained
trainer = pl.Trainer(
accelerator="gpu",
accelerator="cpu",
devices=1,
num_sanity_val_steps=0, # No validation sanity
auto_scale_batch_size="power",
deterministic=True,
min_epochs=epochs,
max_epochs=epochs,
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
wheel
setuptools
wheel>=0.41.2
setuptools==68.2.2
absl-py>=1.0.0
jsonlines>=3.0.0
pandas>=1.3.4
numpy>=1.22.2
matplotlib>=3.5.1
seaborn>=0.13.0
pyyaml
pyyaml>=6.0.1

# AutoML packages
ConfigSpace==0.6.1
@@ -24,4 +24,4 @@ rq>=1.10.1
# Pinning might be removed for dash>2.3.0
werkzeug==2.0.3

pyPDPPartitioner
pyPDPPartitioner>=0.1.8
24 changes: 12 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -13,22 +13,22 @@ def read_file(file_name):
"dev": [
# Tests
"pytest>=4.6",
"pytest-cov",
"pytest-xdist",
"pytest-timeout",
"mypy",
"isort",
"black",
"pydocstyle",
"pre-commit",
"flake8",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.3.1",
"pytest-timeout>=2.2.0",
"mypy>=1.6.1",
"isort>=5.12.0",
"black>=23.11.0",
"pydocstyle>=6.3.0",
"pre-commit>=3.5.0",
"flake8>=6.1.0",
# Docs
"automl-sphinx-theme>=0.1.10",
],
"examples": [
"torch",
"torchvision",
"pytorch-lightning",
"torch>=2.1.0",
"torchvision>=0.16.0",
"pytorch-lightning>=2.1.1",
],
}