suse-model-store/models/linear/operations.py

6 lines
128 B
Python

from pandas import DataFrame
def operate(x: DataFrame, weight: float, bias: float) -> DataFrame:
return x * weight + bias