Skip to content

Commit

Permalink
Rename logic to core
Browse files Browse the repository at this point in the history
  • Loading branch information
azuur committed Feb 13, 2024
1 parent 2488d92 commit e6d7d0d
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
from pydantic import BaseModel, Field
from sklearn.linear_model import LogisticRegression

from ml_pipelines.logic.common.feature_eng import (
from ml_pipelines.core.common.feature_eng import (
FeatureEngineeringParams,
transform_features,
)
from ml_pipelines.logic.common.model import predict
from ml_pipelines.core.common.model import predict


class Point(BaseModel):
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ml_pipelines/deployment/aws/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from matplotlib.figure import Figure
from sklearn.linear_model import LogisticRegression

from ml_pipelines.logic.common.feature_eng import FeatureEngineeringParams
from ml_pipelines.logic.serve.serve import Point
from ml_pipelines.core.common.feature_eng import FeatureEngineeringParams
from ml_pipelines.core.serve.serve import Point
from ml_pipelines.pipeline.train_pipeline import TrainArtifacts


Expand Down
2 changes: 1 addition & 1 deletion ml_pipelines/deployment/common/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import uvicorn

from ml_pipelines.logic.serve.serve import PredictionLoggingFunc, create_fastapi_app
from ml_pipelines.core.serve.serve import PredictionLoggingFunc, create_fastapi_app
from ml_pipelines.pipeline.train_pipeline import TrainArtifacts


Expand Down
4 changes: 2 additions & 2 deletions ml_pipelines/deployment/local/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from matplotlib.figure import Figure
from sklearn.linear_model import LogisticRegression

from ml_pipelines.logic.common.feature_eng import FeatureEngineeringParams
from ml_pipelines.logic.serve.serve import Point
from ml_pipelines.core.common.feature_eng import FeatureEngineeringParams
from ml_pipelines.core.serve.serve import Point
from ml_pipelines.pipeline.train_pipeline import TrainArtifacts


Expand Down
2 changes: 1 addition & 1 deletion ml_pipelines/pipeline/data_gen_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ml_pipelines.logic.common.dgp import generate_raw_data
from ml_pipelines.core.common.dgp import generate_raw_data

data = generate_raw_data(10_000, 813)
data.to_csv("raw_data.csv", index=False)
6 changes: 3 additions & 3 deletions ml_pipelines/pipeline/eval_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import pandas as pd
from sklearn.linear_model import LogisticRegression

from ml_pipelines.logic.common.feature_eng import (
from ml_pipelines.core.common.feature_eng import (
FeatureEngineeringParams,
transform_features,
)
from ml_pipelines.logic.common.model import predict
from ml_pipelines.logic.eval.eval import (
from ml_pipelines.core.common.model import predict
from ml_pipelines.core.eval.eval import (
calculate_metrics,
make_calibration_plot,
make_roc_plot,
Expand Down
4 changes: 2 additions & 2 deletions ml_pipelines/pipeline/train_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import pandas as pd
from sklearn.linear_model import LogisticRegression

from ml_pipelines.logic.common.feature_eng import (
from ml_pipelines.core.common.feature_eng import (
FeatureEngineeringParams,
fit_feature_transform,
transform_features,
)
from ml_pipelines.logic.train.train import split_data, train_model
from ml_pipelines.core.train.train import split_data, train_model


class TrainArtifacts(TypedDict):
Expand Down

0 comments on commit e6d7d0d

Please sign in to comment.