How rektpunk/mcqrnn works
MCQRNN is a small library for monotone composite quantile regression, with parallel TensorFlow and PyTorch implementations. In either example workflow, a user runs a script that generates sample data, fits a regressor for configured quantiles, predicts on test inputs, and plots the results. Each backend’s regressor owns training and prediction; its model implements the monotone network. The README documents both runnable examples. The source excerpts show the backend calls and model internals; no shared storage or external service is evident.
Main entry points: run_tensorflow.py TF Example · run_torch.py Torch Example · tensorflow.py TF Regressor · torch.py Torch Regressor
Components 9
Examples
- TF Example
run_tensorflow.py - TF Quantile Plot
run_tensorflow.py - Torch Example
run_torch.py - Torch Quantile Plot
run_torch.py
TensorFlow
- TF Regressor
mcqrnn/tensorflow.py - TF Network
mcqrnn/tensorflow.py
PyTorch
- Torch Regressor
mcqrnn/torch.py - Torch Network
mcqrnn/torch.py
Other components
- User
Connections 8
- User → TF Example: runs
README.md - TF Example → TF Regressor: fits and predicts
run_tensorflow.py - TF Regressor → TF Network: trains and queries
mcqrnn/tensorflow.py - TF Example → TF Quantile Plot: plots predictions
run_tensorflow.py - User → Torch Example: runs
README.md - Torch Example → Torch Regressor: fits and predicts
run_torch.py - Torch Regressor → Torch Network: trains and queries
mcqrnn/torch.py - Torch Example → Torch Quantile Plot: plots predictions
run_torch.py