Skip to content

Repository files navigation

MLable

TensorFlow utilities for layers, metrics, shaping, sampling, and model building blocks.

Installation

pip install -U mlable

Quickstart

importtensorflowastfimportmlable.layers.shapingimportmlable.metricsx=tf.ones(shape=(2, 4, 8))
y=mlable.layers.shaping.Divide(axis=-1, factor=4, insert=True)(x)
metric=mlable.metrics.CategoricalGroupAccuracy(group=4)
score=metric(y_true=tf.one_hot([[1, 2, 3, 4]], depth=8), y_pred=tf.one_hot([[1, 2, 0, 4]], depth=8))

Documentation

Detailed usage documentation is available under docs/sources/:

Credits

Andrej Karpathy reconnected my ML synapses with micrograd.

License

Licensed under the aGPLv3.

About

Keras / TF libs: layers, metrics, ops, etc

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages