Ignore:
Timestamp:
Aug 24, 2022 3:39:37 PM (3 years ago)
Author:
vondreele
Message:

improvements to scipy cluster analysis & start on Scikit-learn version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIdataGUI.py

    r5319 r5322  
    56975697        '''
    56985698       
     5699        try:
     5700            SKLearn = False
     5701            import sklearn.cluster
     5702            SKLearn = True
     5703        except:
     5704            res = GSASIIpath.condaInstall('scikit-learn')
     5705            if res:
     5706                msg = 'Installation of the sklearn package failed with error:\n' + str(res)
     5707                G2G.G2MessageBox(self,msg,'Install sklearn Error')
    56995708        Id = GetGPXtreeItemId(self,self.root,'Cluster Analysis')
    57005709        if not Id:
     5710               
    57015711            Id = self.GPXtree.AppendItem(self.root,text='Cluster Analysis')
    57025712            ClustDict = {'Files':[],'Method':'correlation','Limits':[0.,100.],'DataMatrix':[],'plots':'All',
     
    57045714            self.GPXtree.SetItemPyData(Id,ClustDict)
    57055715        else:
     5716            ClustDict = self.GPXtree.GetItemPyData(Id)
    57065717            print('Cluster Analysis exists - nothing done')                   
    5707 
     5718        ClustDict['SKLearn'] = SKLearn
    57085719        self.GPXtree.SelectItem(Id)
    57095720   
Note: See TracChangeset for help on using the changeset viewer.