{'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'bgTemplate', 'title':'svm demo', 'position':(22, 29), 'size':(581, 610), 'components': [ {'type':'Button', 'name':'draw', 'position':(455, 410), 'label':'DRAW !', }, {'type':'RadioGroup', 'name':'drawmode', 'position':(290, 15), 'size':(270, -1), 'items':['positive (green) ', 'negative (red)'], 'label':'Manual Example Draw Mode', 'layout':'horizontal', 'max':1, 'selected':'positive', }, {'type':'Choice', 'name':'examplefun', 'position':(295, 90), 'size':(255, 21), 'items':['circle', 'xor', 'line', 'stripe', 'sine', 'checker1', 'checker2', 'userdefined'], 'selected':'userdefined', }, {'type':'TextField', 'name':'margin', 'position':(405, 155), 'size':(145, -1), 'alignment':'right', 'text':'.5', }, {'type':'TextField', 'name':'exnumber', 'position':(405, 185), 'size':(145, -1), 'alignment':'right', 'text':'100', }, {'type':'Button', 'name':'generate', 'position':(300, 225), 'size':(250, -1), 'label':'Generate Examples', }, {'type':'Button', 'name':'clear', 'position':(300, 255), 'size':(250, -1), 'label':'Clear', }, {'type':'ComboBox', 'name':'kernelfun', 'position':(95, 320), 'size':(180, 21), 'items':['linear', 'polynomial', 'radial'], 'selected':'polynomial', 'text':'polynomial', }, {'type':'TextField', 'name':'p1', 'position':(355, 320), 'size':(195, -1), 'alignment':'right', }, {'type':'TextField', 'name':'p2', 'position':(355, 350), 'size':(195, -1), 'alignment':'right', }, {'type':'TextField', 'name':'cp', 'position':(65, 410), 'alignment':'right', }, {'type':'TextField', 'name':'cn', 'position':(245, 410), 'alignment':'right', }, {'type':'Button', 'name':'classify', 'position':(365, 410), 'size':(77, -1), 'label':'TRAIN !', }, {'type':'TextArea', 'name':'svminfo', 'position':(22, 437), 'size':(525, 101), 'alignment':'left', 'editable':0, 'font':{'faceName': 'Courier New', 'family': 'sansSerif', 'size': 9}, }, {'type':'StaticBox', 'name':'StaticBox4', 'position':(10, 390), 'size':(550, 158), 'label':'Support Vector Machine', }, {'type':'StaticBox', 'name':'StaticBox3', 'position':(10, 300), 'size':(550, 83), 'label':'Kernelfunction', }, {'type':'TextField', 'name':'kernelinfo', 'position':(25, 350), 'size':(250, -1), 'alignment':'left', 'editable':0, }, {'type':'StaticText', 'name':'par2label', 'position':(325, 355), 'text':'p2', }, {'type':'StaticText', 'name':'par1label', 'position':(325, 325), 'text':'p1', }, {'type':'StaticText', 'name':'cnl', 'position':(210, 415), 'text':'Cn', }, {'type':'StaticText', 'name':'cpl', 'position':(25, 415), 'text':'Cp', }, {'type':'StaticText', 'name':'StaticText4', 'position':(25, 325), 'text':'Kerneltype', }, {'type':'StaticText', 'name':'StaticText3', 'position':(17, 554), 'size':(541, -1), 'alignment':'center', 'text':'(c) 2004 and 2005 by Uwe Schmitt, http://www.procoders.net', }, {'type':'StaticBox', 'name':'StaticBox2', 'position':(10, 10), 'size':(270, 278), 'label':'2D Example space', }, {'type':'StaticBox', 'name':'StaticBox1', 'position':(290, 70), 'size':(270, 220), 'label':'Automatic Example Generator', }, {'type':'StaticText', 'name':'StaticText2', 'position':(300, 190), 'text':'number of examples', }, {'type':'StaticText', 'name':'StaticText1', 'position':(300, 160), 'size':(86, -1), 'text':'margin', }, {'type':'TextField', 'name':'lambdafield', 'position':(295, 120), 'size':(255, -1), 'alignment':'left', 'enabled':0, 'text':'x*x+y*y - 1', }, {'type':'BitmapCanvas', 'name':'bitmap', 'position':(15, 25), 'size':(260, 255), 'backgroundColor':(255, 255, 255), }, ] # end components } # end background ] # end backgrounds } }