Skip to content

Commit

Permalink
Update train
Browse files Browse the repository at this point in the history
  • Loading branch information
Yahodzinskyi Konstantin committed Nov 20, 2023
1 parent f2e8b55 commit 57781d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion terraform/apps/app/app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ variable "artifacts_bucket_name" {

variable "model_name" {
type = string
default = "sk-learn-linear-regression-reg-model"
default = "sk-learn-random-forest-regressor-reg-model"
}

variable "model_version_number" {
Expand Down
11 changes: 0 additions & 11 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@
import mlflow.sklearn
import os

#
os.environ["MLFLOW_TRACKING_URI"] = "Change me"
os.environ["MLFLOW_EXPERIMENT_NAME"] = "Change me"
os.environ["MLFLOW_TRACKING_USERNAME"] = "Change me"
os.environ["MLFLOW_TRACKING_PASSWORD"] = "Change me"

# AWS AK/SK are required to upload artifacts to S3 Bucket
os.environ["AWS_ACCESS_KEY_ID"] = "Change me"
os.environ["AWS_SECRET_ACCESS_KEY"] = "Change me"


def model_evaluate(model, test_features, test_labels):
predictions = model.predict(test_features)
error = mean_absolute_error(predictions, test_labels)
Expand Down

0 comments on commit 57781d0

Please sign in to comment.