pcurvepy 0.0.10

Last updated:

0 purchases

pcurvepy 0.0.10 Image
pcurvepy 0.0.10 Images
Add to Cart

Description:

pcurvepy 0.0.10

pcurvepy
Principal curves implementation (Hastie '89) in Python
Example:
data = pd.read_csv('test_data.csv')
x = data.loc[:, ('X1', 'X2')].to_numpy()

# transform data to have zero mean
x = x - np.mean(x, 0)
index = np.arange(0, len(x))

p = pcurve.PrincipalCurve(k = 5)
p.fit(x)

plt.scatter(x[:, 0], x[:, 1], alpha = 0.25, c = index)
plt.plot(p.p[:, 0], p.p[:, 1], c = 'k')

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.