NotImplementedError: Multisession implementation does not support discrete index yet #203
Open
2 tasks done
Labels
enhancement
New feature or request
Is there an existing issue for this?
Bug description
I wonder if it is possible to use discrete labels in the case of multiple-sessions? When test the multi-session mode using discrete label,there is an error.
And if add the code"discrete_label = [arr.astype(float) for arr in discrete_label]", it can run without error(in continuous label mode,I think). So it seems that it cannot apply to discrete labels in multisession? Looking forward to your reply. thank you!
Operating System
Ubuntu22.04
CEBRA version
cebra 0.4.0 pypi_0 pypi
Device type
gpu
Steps To Reproduce
"timesteps1 = 5000
timesteps2 = 3000
neurons1 = 50
neurons2 = 30
out_dim = 8
neural_session1 = np.random.normal(0,1,(timesteps1, neurons1))
neural_session2 = np.random.normal(0,1,(timesteps2, neurons2))
neural_session=[neural_session1, neural_session2]
discrete_label1 = np.random.randint(0,10,(timesteps1, ))
discrete_label2 = np.random.randint(0,10,(timesteps2, ))
discrete_label=[discrete_label1,discrete_label2]
multi_cebra_model_discrete = cebra.CEBRA(model_architecture='offset10-model',
batch_size=512,
learning_rate=3e-4,
temperature=1,
output_dimension=3,
max_iterations=1000,
distance='cosine',
conditional='time_delta',
device='cuda_if_available',
verbose=True,
time_offsets=10)
multi_cebra_model_discrete.fit(neural_session, discrete_label)"
Relevant log output
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: