Closed nastya236 closed 10 months ago
Also see https://github.com/AdaptiveMotorControlLab/CEBRA/pull/82 which was merged into main.
main
requires matplotlib ~3.6.2 ie, less than 3.7.1
Example:
import cebra import numpy as np from plotly.subplots import make_subplots import cebra.integrations.plotly data = cebra.datasets.init("rat-hippocampus-single-achilles") X = np.random.uniform(0, 1, (100, 50)) y = np.random.uniform(0, 10, (100, 5)) cebra_model = cebra.CEBRA(max_iterations=3000, batch_size = 512, verbose = True) cebra_model.fit(data.neural) embedding = cebra_model.transform(data.neural) time = np.arange(len(data)) fig = cebra.integrations.plotly.plot_embedding_interactive(embedding, embedding_labels=data.index[:,0]) fig.show()
merging this over to the other PR, thanks @nastya236 !
Also see https://github.com/AdaptiveMotorControlLab/CEBRA/pull/82 which was merged into
main
.requires matplotlib ~3.6.2 ie, less than 3.7.1
Example: