Skip to content

Commit

Permalink
fix for IndividualDTO definition (Optional for MetricsScore)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonhorst committed Nov 26, 2023
1 parent 58d16a6 commit e40ec5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions autotm/fitness/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def do_fitness_calculating(
alg_args: Optional[str] = None,
is_tmp: bool = False,
) -> str:
logger.info("Doing fitness calculating with individual %s" % individual)
individual: IndividualDTO = IndividualDTO.parse_raw(individual)

with fit_tm_of_individual(
Expand Down
2 changes: 1 addition & 1 deletion autotm/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IndividualDTO(BaseModel):
fitness_name: str = "default"
dataset: str = "default"
force_dataset_settings_checkout: bool = False
fitness_value: MetricsScores = None
fitness_value: Optional[MetricsScores] = None
exp_id: Optional[int] = None
alg_id: Optional[str] = None
tag: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "autotm"
version = "0.1.0"
version = "0.1.1"
description = "Automatic hyperparameters tuning for topic models (ARTM approach) using evolutionary algorithms"
authors = [
"Khodorchenko Maria <[email protected]>",
Expand Down

0 comments on commit e40ec5f

Please sign in to comment.