Skip to content

Commit 8b53a53

Browse files
committed
2 parents eb4771b + 8169431 commit 8b53a53

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

cpa/classifier.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -470,18 +470,18 @@ def ToggleChannel(self, chIdx):
470470
def CreateMenus(self):
471471
''' Create file menu and menu items '''
472472
self.fileMenu = wx.Menu()
473-
self.loadTSMenuItem = self.fileMenu.Append(-1, text='Load training set\tCtrl+O',
473+
self.loadTSMenuItem = self.fileMenu.Append(-1, text='Load Training Set\tCtrl+O',
474474
help='Loads objects and classes specified in a training set file.')
475-
self.saveTSMenuItem = self.fileMenu.Append(-1, text='Save training set\tCtrl+S',
475+
self.saveTSMenuItem = self.fileMenu.Append(-1, text='Save Training Set\tCtrl+S',
476476
help='Save your training set to file so you can reload these classified cells again.')
477-
self.loadFullTSMenuItem = self.fileMenu.Append(-1, text='Load training set (CSV)',
477+
self.loadFullTSMenuItem = self.fileMenu.Append(-1, text='Load Training Set (CSV)',
478478
help='Loads objects and classes specified in a training set file.')
479-
self.saveFullTSMenuItem = self.fileMenu.Append(-1, text='Save training set (CSV)',
479+
self.saveFullTSMenuItem = self.fileMenu.Append(-1, text='Save Training Set (CSV)',
480480
help='Save your training data as CSV')
481481
self.fileMenu.AppendSeparator()
482482
# JEN - Start Add
483-
self.loadModelMenuItem = self.fileMenu.Append(-1, text='Load classifier model', help='Loads a classifier model specified in a text file')
484-
self.saveModelMenuItem = self.fileMenu.Append(-1, text='Save classifier model', help='Save your classifier model to file so you can use it again on this or other experiments.')
483+
self.loadModelMenuItem = self.fileMenu.Append(-1, text='Load Classifier Model', help='Loads a classifier model specified in a text file')
484+
self.saveModelMenuItem = self.fileMenu.Append(-1, text='Save Classifier Model', help='Save your classifier model to file so you can use it again on this or other experiments.')
485485
self.fileMenu.AppendSeparator()
486486
# JEN - End Add
487487
self.exitMenuItem = self.fileMenu.Append(id=wx.ID_EXIT, text='Exit\tCtrl+Q', help='Exit classifier')
@@ -542,8 +542,8 @@ def CreateMenus(self):
542542

543543
# Advanced menu
544544
advancedMenu = wx.Menu()
545-
rulesEditMenuItem = advancedMenu.Append(-1, text=u'Edit Rules', help='Lets you edit the rules')
546-
paramsEditMenuItem = advancedMenu.Append(-1, text=u'Edit Parameters', help='Lets you edit the hyperparameters')
545+
rulesEditMenuItem = advancedMenu.Append(-1, text=u'Edit Rules...', help='Lets you edit the rules')
546+
paramsEditMenuItem = advancedMenu.Append(-1, text=u'Edit Parameters...', help='Lets you edit the hyperparameters')
547547
featureSelectMenuItem = advancedMenu.Append(-1, text=u'Check Features', help='Check the variance of your Training Data')
548548
self.GetMenuBar().Append(advancedMenu, 'Advanced')
549549

@@ -1118,7 +1118,7 @@ def LoadTrainingSet(self, filename):
11181118
for bin in self.classBins:
11191119
if bin.label in keysPerBin.keys():
11201120
bin.AddObjects(keysPerBin[bin.label], self.chMap, priority=2)
1121-
num_objs += 1
1121+
num_objs += len(keysPerBin[bin.label])
11221122

11231123
self.PostMessage('Training set loaded (%d %s).'%(num_objs,p.object_name[1]))
11241124
self.GetNumberOfClasses() # Logs number of classes
@@ -1147,7 +1147,7 @@ def LoadTrainingSetCSV(self, filename):
11471147
for bin in self.classBins:
11481148
if bin.label in keysPerBin.keys():
11491149
bin.AddObjects(keysPerBin[bin.label], self.chMap, priority=2)
1150-
num_objs += 1
1150+
num_objs += len(keysPerBin[bin.label])
11511151

11521152
self.PostMessage('Training set loaded (%d %s).'%(num_objs,p.object_name[1]))
11531153
self.GetNumberOfClasses() # Logs number of classes

0 commit comments

Comments
 (0)