drift-ml 0.1.10__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- drift_ml-0.2.1/LICENSE +21 -0
- drift_ml-0.2.1/PKG-INFO +10 -0
- drift_ml-0.2.1/README.md +79 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/engine_launcher.py +42 -58
- drift_ml-0.2.1/drift_ml.egg-info/PKG-INFO +10 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift_ml.egg-info/SOURCES.txt +1 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/pyproject.toml +6 -2
- drift_ml-0.1.10/PKG-INFO +0 -6
- drift_ml-0.1.10/README.md +0 -186
- drift_ml-0.1.10/drift_ml.egg-info/PKG-INFO +0 -6
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/__init__.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/__main__.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/cli/__init__.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/cli/client.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/cli/repl.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/cli/session.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/llm_adapters/__init__.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/llm_adapters/base.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/llm_adapters/gemini_cli.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift/llm_adapters/local_llm.py +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift_ml.egg-info/dependency_links.txt +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift_ml.egg-info/entry_points.txt +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift_ml.egg-info/requires.txt +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/drift_ml.egg-info/top_level.txt +0 -0
- {drift_ml-0.1.10 → drift_ml-0.2.1}/setup.cfg +0 -0
drift_ml-0.2.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Lakshit Sachdeva
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
drift_ml-0.2.1/PKG-INFO
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: drift-ml
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.
|
|
5
|
+
Project-URL: Homepage, https://github.com/lakshitsachdeva/intent2model
|
|
6
|
+
Project-URL: Repository, https://github.com/lakshitsachdeva/intent2model
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: requests>=2.28.0
|
|
10
|
+
Dynamic: license-file
|
drift_ml-0.2.1/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# drift
|
|
2
|
+
|
|
3
|
+
**Terminal-first, chat-based AutoML.** Open source. No tokens. No auth.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pipx install drift-ml
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g drift-ml
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
(Both require `pipx install drift-ml` for the Python CLI.)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Run
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
drift
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
On first run, drift downloads and starts the engine automatically. No backend setup. No config. No tokens.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## How it works
|
|
34
|
+
|
|
35
|
+
- **Local-first** — Engine runs on your machine. Data never leaves.
|
|
36
|
+
- **Chat-based** — `load data.csv`, `predict price`, `try something stronger`
|
|
37
|
+
- **Auto-start** — Engine downloads and starts in the background. You never start a backend manually.
|
|
38
|
+
- **No auth** — No API keys for drift. (You need an LLM for training: Ollama, Gemini CLI, etc.)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Example
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
drift › load iris.csv
|
|
46
|
+
drift › predict variety
|
|
47
|
+
drift › try something stronger
|
|
48
|
+
drift › quit
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Philosophy
|
|
54
|
+
|
|
55
|
+
drift should feel like `git`, `docker`, `brew` — a tool you trust immediately. Zero friction. Open source.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Web UI (optional)
|
|
60
|
+
|
|
61
|
+
This repo also includes a web UI. For development:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
./start.sh
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Then open http://localhost:3000
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Contributing
|
|
72
|
+
|
|
73
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Download and start the drift engine binary when no backend is running.
|
|
3
|
-
|
|
3
|
+
Open source — no tokens, no auth. Downloads from public GitHub Releases.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
import os
|
|
7
7
|
import platform
|
|
8
|
-
import shutil
|
|
9
8
|
import subprocess
|
|
10
9
|
import sys
|
|
11
10
|
from pathlib import Path
|
|
@@ -16,9 +15,8 @@ try:
|
|
|
16
15
|
except ImportError:
|
|
17
16
|
requests = None
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
GITHUB_API = f"https://api.github.com/repos/{GITHUB_REPO}/releases/tags/{ENGINE_TAG}"
|
|
18
|
+
GITHUB_REPO = "lakshitsachdeva/drift" # Engine binaries (v0.2.0+ also in intent2model)
|
|
19
|
+
ENGINE_TAG = "v0.2.0" # Pinned — direct URL, no API, no rate limits
|
|
22
20
|
ENGINE_PORT = os.environ.get("DRIFT_ENGINE_PORT", "8000")
|
|
23
21
|
HEALTH_URL = f"http://127.0.0.1:{ENGINE_PORT}/health"
|
|
24
22
|
|
|
@@ -60,78 +58,63 @@ def _engine_running() -> bool:
|
|
|
60
58
|
return False
|
|
61
59
|
|
|
62
60
|
|
|
63
|
-
def
|
|
64
|
-
"""
|
|
61
|
+
def _get_asset_url(asset_name: str) -> str:
|
|
62
|
+
"""Direct download URL. No API — avoids rate limits."""
|
|
65
63
|
base = os.environ.get("DRIFT_ENGINE_BASE_URL")
|
|
66
64
|
if base:
|
|
67
65
|
return f"{base.rstrip('/')}/{asset_name}"
|
|
68
66
|
return f"https://github.com/{GITHUB_REPO}/releases/download/{ENGINE_TAG}/{asset_name}"
|
|
69
67
|
|
|
70
68
|
|
|
71
|
-
def _get_asset_download_url_via_api(asset_name: str) -> str:
|
|
72
|
-
"""Fallback: get URL via GitHub API (for private repos)."""
|
|
73
|
-
token = os.environ.get("DRIFT_GITHUB_TOKEN") or os.environ.get("GITHUB_TOKEN")
|
|
74
|
-
headers = {
|
|
75
|
-
"User-Agent": "Drift-Engine-Launcher/1.0",
|
|
76
|
-
"Accept": "application/vnd.github+json",
|
|
77
|
-
}
|
|
78
|
-
if token:
|
|
79
|
-
headers["Authorization"] = f"Bearer {token}"
|
|
80
|
-
r = requests.get(GITHUB_API, headers=headers, timeout=15)
|
|
81
|
-
if r.status_code == 404:
|
|
82
|
-
raise RuntimeError(
|
|
83
|
-
f"Release {ENGINE_TAG} not found. "
|
|
84
|
-
"If the repo is private, set DRIFT_GITHUB_TOKEN with repo read access."
|
|
85
|
-
)
|
|
86
|
-
r.raise_for_status()
|
|
87
|
-
data = r.json()
|
|
88
|
-
for a in data.get("assets", []):
|
|
89
|
-
if a.get("name") == asset_name:
|
|
90
|
-
url = a.get("browser_download_url") or a.get("url")
|
|
91
|
-
if url:
|
|
92
|
-
return url
|
|
93
|
-
raise RuntimeError(f"Asset {asset_name} not found in release {ENGINE_TAG}")
|
|
94
|
-
|
|
95
|
-
|
|
96
69
|
def _download_file(url: str, dest: Path) -> None:
|
|
97
70
|
dest.parent.mkdir(parents=True, exist_ok=True)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
71
|
+
headers = {"User-Agent": "Drift/1.0"}
|
|
72
|
+
|
|
73
|
+
def try_curl():
|
|
74
|
+
result = subprocess.run(
|
|
75
|
+
["curl", "-fsSL", "-o", str(dest), url],
|
|
76
|
+
capture_output=True,
|
|
77
|
+
timeout=120,
|
|
78
|
+
)
|
|
79
|
+
if result.returncode != 0:
|
|
80
|
+
raise RuntimeError("curl failed")
|
|
81
|
+
|
|
82
|
+
def try_requests():
|
|
105
83
|
r = requests.get(url, headers=headers, stream=True, timeout=60)
|
|
106
84
|
r.raise_for_status()
|
|
107
85
|
with open(dest, "wb") as f:
|
|
108
86
|
for chunk in r.iter_content(chunk_size=65536):
|
|
109
87
|
f.write(chunk)
|
|
110
|
-
|
|
111
|
-
|
|
88
|
+
|
|
89
|
+
def try_urllib():
|
|
112
90
|
import urllib.request
|
|
113
91
|
req = urllib.request.Request(url, headers=headers)
|
|
114
92
|
with urllib.request.urlopen(req, timeout=60) as resp:
|
|
115
93
|
with open(dest, "wb") as f:
|
|
116
94
|
f.write(resp.read())
|
|
117
95
|
|
|
96
|
+
for attempt in [try_curl, try_requests, try_urllib]:
|
|
97
|
+
try:
|
|
98
|
+
attempt()
|
|
99
|
+
return
|
|
100
|
+
except Exception:
|
|
101
|
+
continue
|
|
102
|
+
raise RuntimeError(f"Download failed. Try: curl -L -o {dest} {url}")
|
|
103
|
+
|
|
118
104
|
|
|
119
105
|
def ensure_engine() -> bool:
|
|
120
|
-
"""
|
|
121
|
-
If engine not running: download (if needed), start it, wait for health.
|
|
122
|
-
Returns True if engine is ready, False on failure.
|
|
123
|
-
"""
|
|
106
|
+
"""Download (if needed), start engine, wait for health."""
|
|
124
107
|
if _engine_running():
|
|
125
108
|
return True
|
|
126
109
|
|
|
127
110
|
if not requests:
|
|
128
|
-
print("drift: 'requests' required
|
|
111
|
+
print("drift: 'requests' required. pip install requests", file=sys.stderr)
|
|
129
112
|
return False
|
|
130
113
|
|
|
131
114
|
bin_path = _get_engine_path()
|
|
132
115
|
bin_dir = _get_engine_dir()
|
|
133
116
|
if not bin_path or not bin_dir:
|
|
134
|
-
print("drift: Could not resolve
|
|
117
|
+
print("drift: Could not resolve ~/.drift/bin. Set HOME or USERPROFILE.", file=sys.stderr)
|
|
135
118
|
return False
|
|
136
119
|
|
|
137
120
|
bin_dir.mkdir(parents=True, exist_ok=True)
|
|
@@ -141,17 +124,13 @@ def ensure_engine() -> bool:
|
|
|
141
124
|
ext = ".exe" if platform.system() == "Windows" else ""
|
|
142
125
|
asset = f"drift-engine-{plat}-{arch}{ext}"
|
|
143
126
|
print(f"drift: Downloading engine ({asset})...", file=sys.stderr)
|
|
144
|
-
url = _get_asset_download_url(asset)
|
|
145
127
|
try:
|
|
128
|
+
url = _get_asset_url(asset)
|
|
146
129
|
_download_file(url, bin_path)
|
|
147
130
|
except Exception as e:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
except Exception as e2:
|
|
152
|
-
print(f"drift: Download failed: {e2}", file=sys.stderr)
|
|
153
|
-
print(f"drift: Try manually: curl -L -o {bin_path} {url}", file=sys.stderr)
|
|
154
|
-
return False
|
|
131
|
+
print(f"drift: Download failed: {e}", file=sys.stderr)
|
|
132
|
+
print(f"drift: Run: mkdir -p ~/.drift/bin && curl -L -o ~/.drift/bin/{asset} <url>", file=sys.stderr)
|
|
133
|
+
return False
|
|
155
134
|
if platform.system() != "Windows":
|
|
156
135
|
bin_path.chmod(0o755)
|
|
157
136
|
if platform.system() == "Darwin":
|
|
@@ -160,7 +139,13 @@ def ensure_engine() -> bool:
|
|
|
160
139
|
except Exception:
|
|
161
140
|
pass
|
|
162
141
|
|
|
163
|
-
|
|
142
|
+
if platform.system() == "Darwin" and bin_path:
|
|
143
|
+
try:
|
|
144
|
+
bin_path.chmod(0o755)
|
|
145
|
+
subprocess.run(["xattr", "-dr", "com.apple.quarantine", str(bin_path)], check=False, capture_output=True)
|
|
146
|
+
except Exception:
|
|
147
|
+
pass
|
|
148
|
+
|
|
164
149
|
env = {**os.environ, "DRIFT_ENGINE_PORT": ENGINE_PORT}
|
|
165
150
|
proc = subprocess.Popen(
|
|
166
151
|
[str(bin_path)],
|
|
@@ -170,10 +155,9 @@ def ensure_engine() -> bool:
|
|
|
170
155
|
stderr=subprocess.DEVNULL,
|
|
171
156
|
start_new_session=True,
|
|
172
157
|
)
|
|
173
|
-
proc.wait()
|
|
158
|
+
proc.wait()
|
|
174
159
|
del proc
|
|
175
160
|
|
|
176
|
-
# Poll for health
|
|
177
161
|
for _ in range(60):
|
|
178
162
|
if _engine_running():
|
|
179
163
|
return True
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: drift-ml
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.
|
|
5
|
+
Project-URL: Homepage, https://github.com/lakshitsachdeva/intent2model
|
|
6
|
+
Project-URL: Repository, https://github.com/lakshitsachdeva/intent2model
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: requests>=2.28.0
|
|
10
|
+
Dynamic: license-file
|
|
@@ -4,13 +4,17 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "drift-ml"
|
|
7
|
-
version = "0.1
|
|
8
|
-
description = "
|
|
7
|
+
version = "0.2.1"
|
|
8
|
+
description = "drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth."
|
|
9
9
|
requires-python = ">=3.10"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"requests>=2.28.0",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
|
+
[project.urls]
|
|
15
|
+
Homepage = "https://github.com/lakshitsachdeva/intent2model"
|
|
16
|
+
Repository = "https://github.com/lakshitsachdeva/intent2model"
|
|
17
|
+
|
|
14
18
|
[project.scripts]
|
|
15
19
|
drift = "drift.__main__:main"
|
|
16
20
|
|
drift_ml-0.1.10/PKG-INFO
DELETED
drift_ml-0.1.10/README.md
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
# Intent2Model 🚀
|
|
2
|
-
|
|
3
|
-
LLM-Guided AutoML Agent - Upload a CSV, chat with the AI, get a trained model.
|
|
4
|
-
|
|
5
|
-
## ⚡ Quick Start (Easiest Way)
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Make scripts executable (first time only)
|
|
9
|
-
chmod +x start.sh stop.sh
|
|
10
|
-
|
|
11
|
-
# Start everything
|
|
12
|
-
./start.sh
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Then open **http://localhost:3000** in your browser!
|
|
16
|
-
|
|
17
|
-
To stop: Press `Ctrl+C` or run `./stop.sh`
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## 📖 How to Use
|
|
22
|
-
|
|
23
|
-
### 1. Upload CSV
|
|
24
|
-
- Drag & drop your CSV file or click "choose file"
|
|
25
|
-
- System analyzes it automatically
|
|
26
|
-
|
|
27
|
-
### 2. Train Model
|
|
28
|
-
Just type a column name in the chat:
|
|
29
|
-
- **"variety"** → trains model to predict "variety"
|
|
30
|
-
- **"price"** → trains model to predict "price"
|
|
31
|
-
- Or any column name from your dataset
|
|
32
|
-
|
|
33
|
-
### 3. View Results
|
|
34
|
-
- **"report"** → shows beautiful charts and metrics
|
|
35
|
-
- **"show me results"** → displays model performance
|
|
36
|
-
|
|
37
|
-
### 4. Make Predictions
|
|
38
|
-
- **"predict"** or **"can you predict for me?"** → starts prediction flow
|
|
39
|
-
- Provide feature values: **"sepal.length: 5.1, sepal.width: 3.5"**
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## 💬 Example Conversation
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
You: [uploads iris.csv]
|
|
47
|
-
AI: ✓ analyzed your dataset • 150 rows • 5 columns
|
|
48
|
-
AI: suggested targets: variety, sepal.length, sepal.width
|
|
49
|
-
|
|
50
|
-
You: variety
|
|
51
|
-
AI: 🚀 training model to predict "variety"...
|
|
52
|
-
AI: ✅ model trained successfully!
|
|
53
|
-
AI: accuracy: 1.000 • best model: RandomForest
|
|
54
|
-
AI: [shows charts]
|
|
55
|
-
|
|
56
|
-
You: report
|
|
57
|
-
AI: [shows detailed charts: metrics, feature importance, CV scores]
|
|
58
|
-
|
|
59
|
-
You: predict
|
|
60
|
-
AI: sure! i need: sepal.length, sepal.width, petal.length, petal.width
|
|
61
|
-
|
|
62
|
-
You: sepal.length: 5.1, sepal.width: 3.5, petal.length: 1.4, petal.width: 0.2
|
|
63
|
-
AI: 🎯 prediction: Setosa
|
|
64
|
-
AI: probabilities: Setosa 99.8%, Versicolor 0.2%, Virginica 0.0%
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## 🛠️ Manual Setup (Alternative)
|
|
70
|
-
|
|
71
|
-
### Backend
|
|
72
|
-
**Important:** Always run uvicorn from inside the `backend/` folder. Running from project root will fail with "Could not import module main".
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
cd backend
|
|
76
|
-
pip install -r ../requirements.txt
|
|
77
|
-
# Optional: set API key in .env or export GEMINI_API_KEY=your_key
|
|
78
|
-
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Or use the helper script (from project root):
|
|
82
|
-
```bash
|
|
83
|
-
chmod +x backend/run.sh
|
|
84
|
-
./backend/run.sh
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
**Backend nahi chal raha?**
|
|
88
|
-
- **"Could not import module main"** → You're in the wrong folder. Run `cd backend` first, then `python3 -m uvicorn main:app --host 0.0.0.0 --port 8000`.
|
|
89
|
-
- **"Address already in use" / port 8000** → Free the port: `lsof -ti:8000 | xargs kill -9`, then start again.
|
|
90
|
-
- **Dependencies missing** → From project root: `pip install -r requirements.txt` (or use `./start.sh` — it creates a venv and installs deps).
|
|
91
|
-
|
|
92
|
-
### Frontend (New Terminal)
|
|
93
|
-
```bash
|
|
94
|
-
cd frontend
|
|
95
|
-
npm install
|
|
96
|
-
npm run dev
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Visit **http://localhost:3000**
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
## 🎨 Features
|
|
104
|
-
|
|
105
|
-
- 📊 **Beautiful Charts**: Metrics, feature importance, CV scores
|
|
106
|
-
- 🎨 **Extravagant UI**: Gradient colors, smooth animations
|
|
107
|
-
- 🤖 **LLM-Powered**: Gemini AI generates optimal pipelines
|
|
108
|
-
- 🔮 **Smart Predictions**: Chat-based prediction interface
|
|
109
|
-
- 📈 **Model Comparison**: Tries multiple models, picks best
|
|
110
|
-
- ⚡ **Auto-Detection**: Automatically detects task type and metrics
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## 📝 Requirements
|
|
115
|
-
|
|
116
|
-
- Python 3.10+
|
|
117
|
-
- Node.js 18+
|
|
118
|
-
- npm/yarn
|
|
119
|
-
|
|
120
|
-
Install dependencies:
|
|
121
|
-
```bash
|
|
122
|
-
# Backend
|
|
123
|
-
pip install -r requirements.txt
|
|
124
|
-
|
|
125
|
-
# Frontend
|
|
126
|
-
cd frontend
|
|
127
|
-
npm install
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## 🐛 Troubleshooting
|
|
133
|
-
|
|
134
|
-
**Services not starting?**
|
|
135
|
-
- Check ports: `lsof -i :8000` and `lsof -i :3000`
|
|
136
|
-
- Check logs: `tail -f backend.log` or `tail -f frontend.log`
|
|
137
|
-
|
|
138
|
-
**Training errors?**
|
|
139
|
-
- Make sure CSV has valid data
|
|
140
|
-
- Check that target column exists
|
|
141
|
-
- Try a different column name
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## drift — Terminal-first CLI
|
|
146
|
-
|
|
147
|
-
**drift** by Lakshit Sachdeva. Terminal-first, chat-based AutoML — same engine as the web UI. No commands to memorize.
|
|
148
|
-
|
|
149
|
-
### Exactly what to do (any computer)
|
|
150
|
-
|
|
151
|
-
1. **Install drift** (pick one):
|
|
152
|
-
```bash
|
|
153
|
-
npm install -g drift-ml
|
|
154
|
-
```
|
|
155
|
-
or:
|
|
156
|
-
```bash
|
|
157
|
-
pipx install drift
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
2. **Run drift:**
|
|
161
|
-
```bash
|
|
162
|
-
drift
|
|
163
|
-
```
|
|
164
|
-
You’ll see the welcome and step-by-step instructions in the terminal.
|
|
165
|
-
|
|
166
|
-
3. **Engine** — On first run the CLI downloads and starts the drift engine locally (or set `DRIFT_BACKEND_URL` to a running engine). You need an LLM: Gemini CLI, Ollama, or another local LLM.
|
|
167
|
-
|
|
168
|
-
4. **In drift:** type `load path/to/your.csv`, then chat (e.g. `predict price`, `try something stronger`). Type `quit` to exit.
|
|
169
|
-
|
|
170
|
-
drift shows you the rest when you run it.
|
|
171
|
-
|
|
172
|
-
### Install (details)
|
|
173
|
-
|
|
174
|
-
- **Local-first** — Same engine as the web app; planning and training run on your machine.
|
|
175
|
-
- **Chat-based**: e.g. `load iris.csv`, `predict price`, `try something stronger`, `why is accuracy capped`.
|
|
176
|
-
- **Engine** runs locally (CLI auto-starts it or use `DRIFT_BACKEND_URL`). Web UI can be hosted on Vercel.
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## 📚 More Info
|
|
181
|
-
|
|
182
|
-
See `HOW_TO_USE.md` for detailed instructions and examples.
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
**That's it! Just run `./start.sh` and start chatting! 🎉**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|