Skip to content

Commit

Permalink
Merge pull request #31 from hybrid-kg/optuna-implementation
Browse files Browse the repository at this point in the history
Optuna implementation
  • Loading branch information
vinaysb authored Jul 8, 2024
2 parents b0f6644 + 8609b1a commit 923e8bc
Show file tree
Hide file tree
Showing 11 changed files with 627 additions and 513 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ $ clep embedding kge --data <NETWORK_FILE> --design <DESIGN_FILE> --model_config

4. **Classification**

The following command carries out classification on the given data file for a chosen model (Elastic Net) using a chosen optimizer (Grid Search).
The following command carries out classification on the given data file for a chosen model (Elastic Net) with 100 hyper-parameter optimization trials.

```bash
$ clep classify --data <EMBEDDING_FILE> --model elastic_net --optimizer grid_search --out <OUTPUT_DIR>
$ clep classify --data <EMBEDDING_FILE> --model elastic_net --num-trials 100 --out <OUTPUT_DIR>
```

## Issues
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ dependencies = [
"scikit-optimize",
"pykeen",
"pandera",
"optuna",
"joblib",
"sqlalchemy",
"mysqlclient",
]

[tool.setuptools.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion src/clep/classification/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

"""Wrap Machine-Learning Classifiers for clep."""

from clep.classification.classify import do_classification
from .hpo import do_classification

__all__ = ['do_classification']
352 changes: 0 additions & 352 deletions src/clep/classification/classify.py

This file was deleted.

Loading

0 comments on commit 923e8bc

Please sign in to comment.