Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kim committed Nov 20, 2023
1 parent bfe37dc commit efce1e3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: deploy
on:
push:
tags:
- "deploy-v*"
jobs:
Deploy:
runs-on: ubuntu-latest
environment: cloud
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: iterative/setup-dvc@v1
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: PullModel
env:
REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
pip install dvc[s3]
dvc pull models/clf-model.joblib
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: DeployApp
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: flyctl deploy --remote-only
17 changes: 17 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# fly.toml app configuration file generated for open-source-mlops-e2e on 2023-11-19T21:18:36-05:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "open-source-mlops-e2e"
primary_region = "yul"

[build]

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]

1 comment on commit efce1e3

@alex000kim
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics

Path f1 roc_auc
metrics.json 0.5298 0.84469

Feature Importances

feature importance
num__Age 0.21
num__NumOfProducts 0.17
num__IsActiveMember 0.10
num__CreditScore 0.02
num__Balance 0.02
num__HasCrCard 0.01
num__Tenure 0.00
num__EstimatedSalary -0.01

Confusion Matrix

Please sign in to comment.