Spaces:
Sleeping
Sleeping
Download templates/documentation.html from Nausad/Data2Model: direct link, hf CLI and curl.
- Browser
- Download file 8.24 kB
-
https://huggingface.co/spaces/Nausad/Data2Model/resolve/main/templates/documentation.html
- Command line
-
hf download hf://spaces/Nausad/Data2Model/templates/documentation.html
-
curl -L -o documentation.html https://huggingface.co/spaces/Nausad/Data2Model/resolve/main/templates/documentation.html
8.24 kB
| {% 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 %} | |