Skip to content

apehex/mlable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

518 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLable

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

Installation

pip install -U mlable

Quickstart

import tensorflow as tf
import mlable.layers.shaping
import mlable.metrics

x = 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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages