Spaces:
Sleeping
Sleeping
File size: 8,236 Bytes
facf506 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | {% extends "base.html" %}
{% block title %}Documentation - Data2Model{% endblock %}
{% block content %}
<div class="container my-5">
<div class="row">
<div class="col-lg-10 mx-auto">
<div class="text-center mb-4">
<h1 class="display-4">
<i class="fas fa-book"></i> Documentation
</h1>
<p class="lead">Quick guide to using Data2Model</p>
</div>
<!-- Quick Start -->
<div class="card shadow mb-4">
<div class="card-header bg-primary text-white">
<h4 class="mb-0">Getting Started (4 Steps)</h4>
</div>
<div class="card-body">
<ol class="mb-0">
<li class="mb-2">
<strong>Upload Dataset</strong> - CSV, Excel, or JSON file
</li>
<li class="mb-2">
<strong>Configure</strong> - Select target column and options
</li>
<li class="mb-2">
<strong>Train</strong> - Click "Start Training" and wait
</li>
<li class="mb-2">
<strong>Download</strong> - Get your trained model
</li>
</ol>
</div>
</div>
<!-- Configuration Options -->
<div class="card shadow mb-4">
<div class="card-header bg-info text-white">
<h4 class="mb-0">Configuration Options</h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<h6 class="text-primary">Problem Type</h6>
<ul class="small mb-3">
<li><strong>Auto Detect</strong> - Recommended</li>
<li>Classification - Categorical predictions</li>
<li>Regression - Numerical predictions</li>
<li>Clustering - Group similar data</li>
<li>Dimensionality Reduction</li>
</ul>
<h6 class="text-success">Encoding Methods</h6>
<ul class="small mb-0">
<li>Auto (One-Hot/Label)</li>
<li>One-Hot, Label, Ordinal</li>
<li>Target, Binary</li>
</ul>
</div>
<div class="col-md-6">
<h6 class="text-warning">Feature Scaling</h6>
<ul class="small mb-3">
<li><strong>Standard</strong> - Recommended</li>
<li>Min-Max - Scale to [0,1]</li>
<li>Robust - For outliers</li>
<li>Normalizer - Unit norm</li>
</ul>
<h6 class="text-info">Test Size</h6>
<p class="small mb-0">
• 20% - Standard datasets<br>
• Auto 60/20/20 split for large datasets (>100K rows)
</p>
</div>
</div>
</div>
</div>
<!-- Understanding Results -->
<div class="card shadow mb-4">
<div class="card-header bg-success text-white">
<h4 class="mb-0">Understanding Results</h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<h6 class="text-success">Classification Metrics</h6>
<ul class="small mb-0">
<li><strong>Accuracy:</strong> Overall correctness (higher is better)</li>
<li><strong>Precision:</strong> Correct positive predictions</li>
<li><strong>Recall:</strong> Found all positives</li>
<li><strong>F1 Score:</strong> Balance of precision & recall</li>
</ul>
</div>
<div class="col-md-6">
<h6 class="text-primary">Regression Metrics</h6>
<ul class="small mb-0">
<li><strong>R² Score:</strong> Variance explained (closer to 1 is better)</li>
<li><strong>RMSE:</strong> Average error (lower is better)</li>
<li><strong>MAE:</strong> Absolute error (lower is better)</li>
<li><strong>MSE:</strong> Squared error (lower is better)</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Making Predictions -->
<div class="card shadow mb-4">
<div class="card-header bg-warning text-dark">
<h4 class="mb-0">Making Predictions</h4>
</div>
<div class="card-body">
<ol class="mb-3">
<li>Go to "Predict" page</li>
<li>Upload new data (same features, no target column)</li>
<li>Get predictions and download results</li>
</ol>
<div class="alert alert-info mb-0">
<strong>Important:</strong> Prediction data must have the same features as training data!
</div>
</div>
</div>
<!-- Using Downloaded Models -->
<div class="card shadow mb-4">
<div class="card-header bg-dark text-white">
<h4 class="mb-0">Using Downloaded Models in Python</h4>
</div>
<div class="card-body">
<pre class="bg-light p-3 mb-0"><code>import pickle
import pandas as pd
# Load model
with open('model_file.pkl', 'rb') as f:
model_data = pickle.load(f)
model = model_data['model']
scaler = model_data['scaler']
# Load and predict
X_new = pd.read_csv('new_data.csv')
if scaler:
X_new = scaler.transform(X_new)
predictions = model.predict(X_new)
print(predictions)</code></pre>
</div>
</div>
<!-- FAQ -->
<div class="card shadow">
<div class="card-header bg-secondary text-white">
<h4 class="mb-0">Frequently Asked Questions</h4>
</div>
<div class="card-body">
<h6>Q: Do I need to register?</h6>
<p class="small">No! Data2Model is completely free and requires no registration.</p>
<h6>Q: What file formats are supported?</h6>
<p class="small">CSV, Excel (.xlsx, .xls), and JSON files.</p>
<h6>Q: How long does training take?</h6>
<p class="small">Typically 1-5 minutes depending on dataset size.</p>
<h6>Q: Can I use the model in my application?</h6>
<p class="small">Yes! Download the .pkl file and use it with scikit-learn in Python.</p>
<h6>Q: What if my data is too large?</h6>
<p class="small">For datasets >100K rows, we automatically use 60/20/20 train/test/validation split for better accuracy.</p>
<h6 class="mb-2">Need more help?</h6>
<a href="{{ url_for('feedback') }}" class="btn btn-primary btn-sm">
<i class="fas fa-comment"></i> Contact Support
</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
|