MCPcopy Create free account
hub / github.com/TrustAGI-Lab/MTGODE / StandardScaler

Class StandardScaler

util.py:134–147  ·  view source on GitHub ↗

Standard the input

Source from the content-addressed store, hash-verified

132
133
134class StandardScaler():
135 """
136 Standard the input
137 """
138
139 def __init__(self, mean, std):
140 self.mean = mean
141 self.std = std
142
143 def transform(self, data):
144 return (data - self.mean) / self.std
145
146 def inverse_transform(self, data):
147 return (data * self.std) + self.mean
148
149
150def sym_adj(adj):

Callers 1

load_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected