Spaces:
Runtime error
Runtime error
| """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, | |
| ) | |
| def divide_by_max(npy,): | |
| "The input npy divided by his maximum value" | |
| return npy / npy.max() | |
| def divide_by_sum(npy,): | |
| "The input npy divided by the sum of their values" | |
| return npy / npy.sum() |