MCPcopy Create free account
hub / github.com/kwuking/TimeMixer / StandardScaler

Class StandardScaler

utils/tools.py:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70class StandardScaler():
71 def __init__(self, mean, std):
72 self.mean = mean
73 self.std = std
74
75 def transform(self, data):
76 return (data - self.mean) / self.std
77
78 def inverse_transform(self, data):
79 return (data * self.std) + self.mean
80
81
82def save_to_csv(true, preds=None, name='./pic/test.pdf'):

Callers 10

__read_data__Method · 0.85
__read_data__Method · 0.85
__read_data__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__read_data__Method · 0.85
__read_data__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected