MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / plot_cumulative_variance

Function plot_cumulative_variance

ann_class2/util.py:148–157  ·  view source on GitHub ↗
(pca)

Source from the content-addressed store, hash-verified

146
147
148def plot_cumulative_variance(pca):
149 P = []
150 for p in pca.explained_variance_ratio_:
151 if len(P) == 0:
152 P.append(p)
153 else:
154 P.append(p + P[-1])
155 plt.plot(P)
156 plt.show()
157 return P
158
159
160def forward(X, W, b):

Callers 1

get_transformed_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected