Industry modes
Industry profiles, scenarios and how to lock the app to one.
What industry mode does
Industry mode gives you guided scenarios for a field, each with sample data and a suggested starting workflow. The default mode is Advanced Mode, which has no scenarios and shows everything.
Open /industry/mode to choose a mode, or post to /industry/mode/<profile_id>. The dashboard for a mode is at /industry/dashboard/<profile_id>.
Profiles and scenarios
| Profile id | Name | Scenarios |
|---|---|---|
| advanced | Advanced Mode | none |
| agriculture | Agriculture | yield_prediction, crop_disease_detection |
| energy | Energy and Power | load_forecasting, renewable_prediction |
| finance | Finance and Economics | stock_prediction, credit_risk, fraud_detection, portfolio_optimization, customer_churn, market_segmentation, loan_default_prediction, market_volatility, currency_prediction, insurance_claims, revenue_forecasting |
| healthcare | Healthcare and Medical | disease_prediction, readmission_prediction, treatment_outcome |
| manufacturing | Manufacturing and Industry | quality_prediction, predictive_maintenance, process_optimization |
| marine_life | Marine Life Conservation | species_identification, coral_health_monitoring, fish_population_estimation |
| marine_pollution | Marine Pollution Monitoring | oil_spill_detection, plastic_classification, water_quality_monitoring |
| petroleum | Petroleum Engineering | well_log_analysis, production_forecast, decline_curve, sweet_spot_detection, reservoir_properties, equipment_failure_prediction, pipeline_leak_detection, flow_assurance_risk, facility_maintenance |
| retail | Retail and E-commerce | demand_forecasting, customer_segmentation |
A scenario has an id, name, description, icon, difficulty, estimated time, steps, a default template and sample data.
Start a scenario
- Choose a mode.
- Open a scenario at
/industry/scenario/<profile_id>/<scenario_id>. - Start it. The application creates a project named after the scenario with a time stamp, using scikit-learn, with the industry profile, scenario id and industry configuration stored on it. It also creates a progress record.
- You land on the first step at
/industry/project/<id>/step/1. Sample files are served from/industry/sample-data/<filename>.
curl -X POST http://127.0.0.1:5001/industry/scenario/finance/credit_risk/start
The reply is {"success": true, "project_id": ..., "redirect_url": "..."}. Some short aliases are accepted in the profile part: marine, ocean, pollution, marinelife, conservation and biodiversity.
Lock an installation to one industry
Start the launcher with --industry <name>, or set the environment variable MLSTUDIO_FORCED_INDUSTRY. The mode is then fixed and switching is disabled.
python run_mlstudio.py --industry petroleum
Accepted short names: pet, oilandgas and oil mean petroleum; health and medical mean healthcare; fin means finance; mfg means manufacturing. The two marine profiles need their full ids.
Industry modules
Seven profiles have a module folder with their own nodes, templates and datasets: agriculture, energy, finance, healthcare, manufacturing, petroleum and retail. The two marine profiles have no module.
Industry routes
| Route | What it does |
|---|---|
| GET /industry/api/profiles | All profiles. |
| GET /industry/api/profile/<id> | One profile. |
| GET /industry/api/scenarios/<id> | Scenarios of a profile. |
| GET /industry/api/profiles/<id>/modules | Modules of a profile. |
| GET /industry/api/scenarios/<id>/module | Module of a scenario. |
| GET /industry/api/profiles/search | Parameters q, module_id, difficulty. |
| GET /api/v1/industry-modules | List modules. |
| GET /api/v1/industry-modules/<id> | One module. |
| GET /api/v1/industry-modules/<id>/nodes | Nodes of a module. |
| GET /api/v1/industry-modules/templates, datasets, profiles, search | Templates, datasets, profiles and search across modules. |