Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
fwhigh committed May 14, 2021
1 parent de504af commit c9d534b
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ help:
@echo " test run all tests with coverage"

clean:
rm -rf dist/*
rm -rf dist build *.egg-info .pytest_cache htmlcov

dev:
pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Install the package.

```bash
git clone https://github.com/fwhigh/metalearn.git
cd metalearn
cd metaflow-helper
python -m pip install .
```

Expand Down
2 changes: 1 addition & 1 deletion examples/model-tournament/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from tensorflow.python.keras import Sequential
from tensorflow.python.keras.layers import Dense, Dropout

from metalearn.constants import RunMode
from metaflow_helper.constants import RunMode


def import_object_from_string(path):
Expand Down
6 changes: 3 additions & 3 deletions examples/model-tournament/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
n_splits = 1
contenders_spec = [
{
'__model': ['metalearn.model_handlers.LightGBMRegressorHandler'],
'__model': ['metaflow-helper.model_handlers.LightGBMRegressorHandler'],
'learning_rate': [0.1],
'max_depth': [1, 2, 3],
'n_estimators': [10_000],
Expand All @@ -28,7 +28,7 @@
},
{
# Anything with an underscore is a specially handled parameter
'__model': ['metalearn.model_handlers.KerasRegressorHandler'],
'__model': ['metaflow-helper.model_handlers.KerasRegressorHandler'],
'__build_model': ['common.build_keras_model'],
# These go to the model initializer
'metric': ['mse'],
Expand All @@ -48,4 +48,4 @@
}],
},
]
dependencies = ['metalearn']
dependencies = ['metaflow-helper']
2 changes: 1 addition & 1 deletion examples/model-tournament/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import config
import common

from metalearn.constants import RunMode
from metaflow_helper.constants import RunMode


class Train(FlowSpec):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/model_handlers/test_keras.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
from sklearn.metrics import r2_score
from metalearn.model_handlers import KerasRegressorHandler, build_keras_model
from metalearn.constants import RunMode
from metaflow_helper.model_handlers import KerasRegressorHandler, build_keras_model
from metaflow_helper.constants import RunMode


def test_keras_model_regressor_handler_train():
Expand Down
4 changes: 2 additions & 2 deletions tests/model_handlers/test_lightgbm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
from sklearn.metrics import r2_score
from metalearn.model_handlers import LightGBMRegressorHandler
from metalearn.constants import RunMode
from metaflow_helper.model_handlers import LightGBMRegressorHandler
from metaflow_helper.constants import RunMode


def test_lightgbm_model_regressor_handler_train():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import metalearn
import metaflow_helper


def test_import():
assert metalearn
assert metaflow_helper

0 comments on commit c9d534b

Please sign in to comment.