Skip to content

Commit 27cfa16

Browse files
author
PyCaret
authored
Add files via upload
1 parent 27120bc commit 27cfa16

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.7-slim
2+
3+
WORKDIR /app
4+
5+
ADD . /app
6+
7+
RUN pip install --trusted-host pypi.python.org -r requirements.txt
8+
9+
ENTRYPOINT ["python"]
10+
11+
CMD ["/app/app.py"]

action.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "PyCaret AutoML Git Action"
2+
description: "pycaret.classification"
3+
author: "Moez Ali"
4+
inputs:
5+
myInput:
6+
description: "Classification"
7+
required: true
8+
default: "zeroinputs"
9+
outputs:
10+
myOutput:
11+
description: "Output from the action"
12+
runs:
13+
using: "docker"
14+
image: "Dockerfile"
15+
branding:
16+
icon: 'box'
17+
color: 'blue'

app.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os, ast
2+
import pandas
3+
4+
dataset_path = "https://raw.githubusercontent.com/" + os.environ["GITHUB_REPOSITORY"] +"/master/dataset.csv"
5+
data = pd.read_csv(dataset_path)
6+
data.head()
7+
8+
from pycaret.classification import *
9+
clf1 = setup(data, target = 'Purchase', session_id=123, silent=True, html=False)
10+
11+
c = compare_models()
12+
13+
save_model(c, 'Trained Model')

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pycaret-nightly

0 commit comments

Comments
 (0)