Skip to content

Commit

Permalink
LightAutoML release v0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmryzhkov committed Jan 12, 2024
1 parent d5f6aa3 commit 56cb7c5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions lightautoml/ml_algo/dl_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def get_dataloaders_from_dicts(self, data_dict: Dict):
num_workers=self.train_params["num_workers"],
collate_fn=collate_dict,
pin_memory=self.train_params["pin_memory"],
drop_last={'train':True}.get(stage, False)
)
for stage, value in data_dict.items()
}
Expand Down
2 changes: 1 addition & 1 deletion lightautoml/reader/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def _guess_role(self, feature: Series) -> RoleType:
try:
# TODO: check all notnans and set coerce errors
t = cast(pd.Series, pd.to_datetime(feature, infer_datetime_format=False, format=date_format))
except (ValueError, AttributeError):
except (ValueError, AttributeError, TypeError):
# else category
return CategoryRole(object)

Expand Down
2 changes: 1 addition & 1 deletion lightautoml/text/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def load_state_dict(self, weights: Dict, model: nn.Module):
else:
model.load_state_dict(model_weights)
self.models[key] = deepcopy(model.eval()).cpu()

weights["best_loss"] = self.best_loss
return self


Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "LightAutoML"
version = "0.3.8-b1"
version = "0.3.8"
description = "Fast and customizable framework for automatic ML model creation (AutoML)"
authors = [
"Alexander Ryzhkov <[email protected]>",
Expand All @@ -15,11 +15,10 @@ license = "Apache-2.0"
homepage = "https://lightautoml.readthedocs.io/en/latest/"
repository = "https://github.com/AILab-MLTools/LightAutoML"
classifiers = [
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Development Status :: 3 - Alpha",
Expand All @@ -31,7 +30,7 @@ classifiers = [


[tool.poetry.dependencies]
python = ">=3.6.1, <3.11"
python = ">=3.8, <3.12"

poetry-core = [
{version = ">=1.0.0", python = "<3.7"},
Expand Down
4 changes: 2 additions & 2 deletions scripts/poetry_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@


PYPROJECT_TOML = Path("pyproject.toml")
ALL_PYTHON_DEPS = ">=3.6.1, <3.11"
PYTHON_DEPS = {6: "~3.6.1", 7: "~3.7.1", 8: "~3.8.0", 9: "~3.9.0", 10: "~3.10.0"}
ALL_PYTHON_DEPS = ">=3.6.1, <=3.11"
PYTHON_DEPS = {6: "~3.6.1", 7: "~3.7.1", 8: "~3.8.0", 9: "~3.9.0", 10: "~3.10.0", 11: "~3.11.0"}
PYTHON_DEPS_PATTERN = '^python = ".*"$'


Expand Down

0 comments on commit 56cb7c5

Please sign in to comment.