Multi-XY Regressor
A PyTorch neural network for predicting multiple (x, y) coordinate pairs from tabular features.
Architecture
- Input: 20 features
- Output: 5 (x, y) pairs = 10 values (normalized 0-512 range)
- Model: 3-layer MLP with dropout (105K parameters)
Performance
- Overall RMSE: 8.37
- Overall MAE: 6.66
- Overall RΒ²: 0.975
Usage
from inference import load_model, predict
import numpy as np
model, stats, config = load_model()
# Your input: 20 features
features = np.random.randn(1, 20).astype(np.float32)
coords = predict(model, features, stats)
# coords shape: (1, 10) -> [(x0, y0), (x1, y1), ...]
points = [(coords[0, i*2], coords[0, i*2+1]) for i in range(5)]
print(points)
Swapping Your Data
- Collect your tabular features and corresponding XY coordinates
- Update
dataset_config.jsonwith your feature/target column names - Retrain by running the training script with your CSV
- Replace
model.ptandtarget_stats.npzin this repo
Files
model.ptβ Trained PyTorch modeltarget_stats.npzβ Target normalization statisticsdataset_config.jsonβ Data configurationinference.pyβ Loading and prediction utilities
Generated by ML Intern
This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
- Try ML Intern: https://smolagents-ml-intern.hf.space
- Source code: https://github.com/huggingface/ml-intern
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support