Skip to content

Latest commit

 

History

History
119 lines (80 loc) · 2.31 KB

INSTALLATION.md

File metadata and controls

119 lines (80 loc) · 2.31 KB

Installation

MindsDB Docker

  1. Install Docker on your machine.

  2. Run the following command to create a Docker container with MindsDB:

    docker run --name mindsdb_container_lightwood -p 47334:47334 -p 47335:47335 mindsdb/mindsdb:lightwood

Upload Dataset

  1. Navigate to http://localhost:47334/.

  2. Upload the dataset in the MindsDB editor.

    Upload Dataset

  3. Run the following queries to check if the dataset is uploaded correctly:

    SHOW TABLES FROM files;
    
    SELECT * FROM files.cloth_size LIMIT 10;

Create and Train Model

  1. Create and train the model using the following query:

    CREATE PREDICTOR mindsdb.cloth_predictor
    FROM files
    (SELECT * FROM cloth_size LIMIT 10000)
    PREDICT size;
  2. Describe the model and its features:

    DESCRIBE cloth_predictor;
    DESCRIBE cloth_predictor.features;
  3. Check the status of the model:

    SELECT status
    FROM mindsdb.models
    WHERE name='cloth_predictor';

Create and Train Model

Predicting Size using Trained Model

  1. Use the trained model to predict the size with the following query:

    SELECT size
    FROM mindsdb.cloth_predictor
    WHERE weight = 60
    AND age = 23
    AND height = 154.94;

    Predict Size

Backend

  1. Install nodejs into your machine.

  2. Navigate to backend/ folder

    cd backend
  3. Install the required packages.

    npm install
  4. Run the backend server

    npm run dev

Frontend

  1. Navigate to frontend/ folder

    cd frontend
  2. Install the required packages.

    npm install
  3. Run the frontend server

    npm run dev
  4. You can view the live website on http://localhost:5173/