This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.9" | |
| services: | |
| web: | |
| build: ./App | |
| ports: | |
| - "5000:5000" | |
| volumes: | |
| - sidecar:/sidecar | |
| command: sh -c "git clone https://github.com/vittorio-nardone/sidecar.git ; flask run" | |
| redis: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM arm32v7/python:3.8 | |
| RUN apt-get -y update | |
| RUN apt-get -y upgrade | |
| # Install Firefox and Selenium | |
| RUN apt-get install -y firefox-esr | |
| RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-arm7hf.tar.gz | |
| RUN tar -xf geckodriver-v0.23.0-arm7hf.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.firefox.options import Options | |
| from selenium import webdriver | |
| import os | |
| from time import sleep | |
| from pyvirtualdisplay import Display | |
| def paradox_login(): | |
| # Set screen resolution to 1366 x 768 like most 15" laptops | |
| display = Display(visible=0, size=(1366, 768)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.6.10-slim | |
| RUN apt-get -y update && apt-get install -y \ | |
| python3-dev \ | |
| apt-utils \ | |
| python-dev \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --upgrade setuptools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @step | |
| def hyper_tuning(self): | |
| """ | |
| Hyperparameters tuning | |
| """ | |
| # Tune hyperparameters of the model | |
| param_grid = { | |
| 'changepoint_prior_scale': [0.001, 0.01, 0.1, 0.5], | |
| 'seasonality_prior_scale': [0.01, 0.1, 1.0, 10.0], | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import numpy as np | |
| from io import StringIO | |
| from metaflow import FlowSpec, step, Parameter, IncludeFile | |
| from fbprophet import Prophet | |
| class ProphetFlow(FlowSpec): | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SeleniumChromiumLayer: | |
| Type: AWS::Lambda::LayerVersion | |
| Properties: | |
| CompatibleRuntimes: | |
| - python3.7 | |
| - python3.6 | |
| Content: | |
| S3Bucket: | |
| Ref: BucketName | |
| S3Key: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 1 | |
| backend: | |
| phases: | |
| build: | |
| commands: | |
| - '# Evaluate backend Python code quality' | |
| - find amplify/backend/function -name index.py -type f | xargs pylint --fail-under=5 --rcfile=pylint.rc | |
| - '# Execute Amplify CLI with the helper script' | |
| - amplifyPush --simple | |
| frontend: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const labels = { | |
| // Auth | |
| signInLabel: 'Sign In', | |
| signOutLabel: 'Sign Out', | |
| signInHeader: 'Sign in to your account', | |
| signInResetPassword: 'Reset password', | |
| signInCreateAccount: 'Create account', | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM amazonlinux:latest | |
| RUN yum update -y | |
| RUN yum -y install \ | |
| git \ | |
| curl \ | |
| openssl \ | |
| gcc-c++ \ | |
| gcc \ | |
| openssl-devel \ |
NewerOlder