BERNN-MSMS
Minimal README for quick usage.
Longer historical content is kept in LEGACY_README.md.
Install
pip install bernn
Basic usage
from bernn import TrainAEClassifierHoldout
trainer_cls = TrainAEClassifierHoldout
trainer = trainer_cls(config=bernn_config, log_metrics=True, keep_models=False)
# Train and predict in one call
preds_encoded = trainer.fit_predict(
X_train,
y_train,
X_test=X_test,
y_test=y_test,
groups_train=batches_train,
groups_test=batches_test,
cross_validation=False,
cross_test=False,
)
# Decode predictions back to original labels
preds = trainer.predict(X_test)
Important runtime contract:
- groups_train is mandatory.
- If X_test is provided, groups_test is mandatory.
Important parameters
Focus on these first:
- optimize_hyperparams: enable/disable Ax optimization.
- n_trials: number of optimization trials.
- fixed_hyperparams: force values and remove them from search.
- n_repeats: number of holdout repeats.
- n_layers, layer1: classifier depth and width seed.
- dloss: domain loss mode.
- warmup, n_epochs: core training schedule.
- device: cpu/cuda target.
- scaler, bs: preprocessing and batch size.
Official documentation
- Full reference: OFFICIAL_DOCUMENTATION.md
- Full parameter catalog: TRAINING_PARAMETERS.md
- Minimal runnable examples notebook (4 variants): tutorials/minimal_examples.ipynb
- Optimized all-config notebook (TrainAEClassifierHoldout): tutorials/optimized_classifier_holdout_all_configs.ipynb
- Optimized all-config notebook (TrainAEThenClassifierHoldout): tutorials/optimized_ae_then_classifier_holdout_all_configs.ipynb
- Historical CLI-heavy guide: LEGACY_README.md
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bernn-0.6.2.tar.gz
(284.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bernn-0.6.2-py3-none-any.whl
(305.5 kB
view details)
File details
Details for the file bernn-0.6.2.tar.gz.
File metadata
- Download URL: bernn-0.6.2.tar.gz
- Upload date:
- Size: 284.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
684629ce0baafdac8ef6f7151ef14bd5a05985656d0c07832fc692f1a55d06bf
|
|
| MD5 |
96eafbc6bb03628f2476f58a4b10b74a
|
|
| BLAKE2b-256 |
2d2e39cfa63b6600956f997bf67d611280fc61ddea1b4de7ecfdde7a36ae016d
|
File details
Details for the file bernn-0.6.2-py3-none-any.whl.
File metadata
- Download URL: bernn-0.6.2-py3-none-any.whl
- Upload date:
- Size: 305.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22f28b44f5b913b8068077356a4e5c61c58d1e538222d472e93ac279a13d03db
|
|
| MD5 |
73381e58d08c4356f8731c6f34d40ec1
|
|
| BLAKE2b-256 |
70aa4af95a743df1dd77f478e674340382219ab7af1c293d93b5c32ef5c33895
|