(pca)
| 146 | |
| 147 | |
| 148 | def 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 | |
| 160 | def forward(X, W, b): |
no outgoing calls
no test coverage detected