Spaces:
Runtime error
Runtime error
File size: 444 Bytes
124bf1a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
"""All functions that can be applied as preprocessing"""
from .pipeline import (
register_in_pipeline, # decorator to make available a function to use with Pipeline class
Pipeline,
)
@register_in_pipeline
def divide_by_max(npy,):
"The input npy divided by his maximum value"
return npy / npy.max()
@register_in_pipeline
def divide_by_sum(npy,):
"The input npy divided by the sum of their values"
return npy / npy.sum() |