- fixed crash
This commit is contained in:
@@ -817,6 +817,7 @@ void MainComponent::comboBoxChanged (ComboBox* comboBoxThatHasChanged)
|
|||||||
int index = m_rbmSelect->getSelectedItemIndex();
|
int index = m_rbmSelect->getSelectedItemIndex();
|
||||||
m_pLayer = static_cast<RbmComponent*>(m_stack->getLayer(index));
|
m_pLayer = static_cast<RbmComponent*>(m_stack->getLayer(index));
|
||||||
m_weightIndex = 0;
|
m_weightIndex = 0;
|
||||||
|
m_trainingIndex = 0;
|
||||||
updateControls();
|
updateControls();
|
||||||
m_pLayer->redrawWeights(m_weightIndex);
|
m_pLayer->redrawWeights(m_weightIndex);
|
||||||
if (m_stack->trainingBatch().n_rows > 0)
|
if (m_stack->trainingBatch().n_rows > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user