conda create -n venv-template python=3.10 conda activate venv-template pip install -r requirements.txt
Make sure your launch.json file is up to date and using your desired arguments and run with vscode debugger
OR
python run.py --input_data_path ./local/sample_data.csv --output_data_path ./local/ --model_path ./local/models/model_20240307_054739.joblib --pipeline_path ./local/models/data_prep_pipeline_20240307_054705.joblib --run_env local
python run.py --input_data_path gs://ml-project-template/input_data/sample_data.csv --output_data_path gs://ml-project-template/output_data --pipeline_path gs://ml-project-template/model/data_prep_pipeline_20240306_235640.joblib --model_path gs://ml-project-template/model/model_20240306_235700.joblib --run_env gcs
OR
python setup.py install
OR
https://cloud.google.com/artifact-registry/docs/docker/store-docker-container-images#get-image https://medium.com/@abhinav.90444/title-pushing-artifacts-to-artifact-registry-a-step-by-step-guide-97f825242cfc
docker build -t myapp-pred .
docker run myapp-pred --input_data_path ./local/sample_data.csv --output_data_path ./local/ --model_path ./local/models/model_20240307_054739.joblib --pipeline_path ./local/models/data_prep_pipeline_20240307_054705.joblib --run_env local
docker run myapp-pred --input_data_path gs://ml-project-template/input_data/sample_data.csv --output_data_path gs://ml-project-template/output_data --pipeline_path gs://ml-project-template/model/data_prep_pipeline_20240306_235640.joblib --model_path gs://ml-project-template/model/model_20240306_235700.joblib --run_env gcs
GCP - Artifact registry gcloud auth configure-docker us-central1-docker.pkg.dev docker tag myapp us-central1-docker.pkg.dev//ml-project-template/myapp:dev
docker push us-central1-docker.pkg.dev//ml-project-template/myapp:dev
gcloud ai custom-jobs create --region=us-central1 --display-name=training_test_cli3 --worker-pool-spec=machine-type=n1-standard-4,replica-count=1,container-image-uri=us-central1-docker.pkg.dev//ml-project-template/myapp:dev --worker-pool-spec=machine-type=n1-standard-4,replica-count=1,container-image-uri=us-central1-docker.pkg.dev//ml-project-template/myapp:dev --args="--input_data_path=gs://ml-project-template/input_data/sample_data.csv,--output_data_path=gs://ml-project-template/output_data/test_out,--model_path=gs://ml-project-template/model,--run_env=gcs"