- RPamTxt(self.corpus, self.parent.RscriptsPath)
- pid = exec_rcode(self.parent.RPath,self.corpus.dictpathout['Rchdtxt'], wait = False)
- while pid.poll() == None :
- if not self.cmd :
- self.dlg.Pulse(u'CHD...')
- sleep(0.2)
- else :
- pass
- check_Rresult(self.parent, pid)
- ucecl = self.corpus.read_uce_from_R(self.corpus.dictpathout['uce'])
- ucecl0 = [cl for uce,cl in ucecl if cl != 0]
- clnb = len(list(set(ucecl0)))
- classes = [cl for uce, cl in ucecl]
- uces1 = [val for val, i in uces1]
- self.corpus.make_lc(uces1, classes, clnb)
- self.corpus.build_profile(clnb, classes, self.corpus.actives, self.corpus.dictpathout['Contout'])
+ RPamTxt(self, self.parent.RscriptsPath)
+ self.DoR(self.pathout['Rchdtxt'], dlg = self.dlg, message = 'R...')
+ #pid = exec_rcode(self.parent.RPath,self.pathout['Rchdtxt'], wait = False)
+ #while pid.poll() == None :
+ # if not self.cmd :
+ # self.dlg.Pulse(u'CHD...')
+ # sleep(0.2)
+ # else :
+ # pass
+ #check_Rresult(self.parent, pid)
+ self.corpus.make_ucecl_from_R(self.pathout['uce'])
+ #ucecl0 = [cl for uce,cl in ucecl if cl != 0]
+ #clnb = len(list(set(ucecl0)))
+ #classes = [cl for uce, cl in ucecl]
+ #uces1 = [val for val, i in uces1]
+ #self.corpus.make_lc(uces1, classes, clnb)
+ #self.corpus.build_profile(clnb, classes, self.corpus.actives, self.corpus.dictpathout['Contout'])
+ self.corpus.make_and_write_profile(self.actives, self.corpus.lc, self.pathout['Contout'])
+ self.sup, lim = self.corpus.make_actives_nb(self.parametres['max_actives'], 2)
+ self.corpus.make_and_write_profile(self.sup, self.corpus.lc, self.pathout['ContSupOut'])
+ self.corpus.make_and_write_profile_et(self.corpus.lc, self.pathout['ContEtOut'])
+ self.clnb = len(self.corpus.lc)
+ self.parametres['clnb'] = self.clnb