Metadata-Version: 2.1
Name: tf1
Version: 1.1.0
Summary: F1-score metric for TensorFlow
Home-page: https://github.com/shkarupa-alex/tf1
Author: Shkarupa Alex
Author-email: shkarupa.alex@gmail.com
License: MIT
Description: # tf1
        
        F1-score metrics for classification models in TensorFlow.
        There are 3 average modes provided:
        - binary
        - macro
        - micro
        
        ## Usage
        
        ```python
        from tf1 import f1_binary
        
        # use f1_binary as any other metric from tf.metrics.*
        ```
        
        Note, that due to streaming nature of metric computation process,
        "macro" and "micro" average metrics should know total number of
        classes. Use them as follows:
        
        ```python
        from tf1 import f1_macro, f1_micro
        
        def my_task_f1_macro(
            labels, predictions, num_classes, weights=None,
            metrics_collections=None, updates_collections=None,
            name=None):
        
            return f1_macro(
                labels=labels,
                predictions=predictions,
                num_classes=123,  # Required
                weights=weights,
                metrics_collections=metrics_collections,
                updates_collections=updates_collections,
                name=name
            )
        
        # use my_task_f1_macro as any other metric from tf.metrics.*
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
