Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/e/s/estimate.gender-0.4/estimate/gender/estimateGender.py   estimate.gender(Download)
        cumEnergy = numpy.array([sum(eigvalues[0:eigvalues.size-i]) / sum(eigvalues) for i in range(0, eigvalues.size+1)])
        numeigvalues = len(cumEnergy)-sum(cumEnergy>0.99)
        pca_machine.resize(pca_machine.shape[0], int(numeigvalues))
        if args.savemachine:
          pca_file = bob.io.HDF5File(pca_file_name, 'w')

src/f/a/facereclib-1.2.1/facereclib/tools/LDA.py   facereclib(Download)
    self.m_machine, self.m_variances = t.train(data)
    if self.m_lda_subspace:
      self.m_machine.resize(self.m_machine.shape[0], self.m_lda_subspace)
      self.m_variances.resize(self.m_lda_subspace)
 

src/f/a/facereclib-HEAD/facereclib/tools/LDA.py   facereclib(Download)
    self.m_machine, self.m_variances = t.train(data)
    if self.m_lda_subspace:
      self.m_machine.resize(self.m_machine.shape[0], self.m_lda_subspace)
      self.m_variances.resize(self.m_lda_subspace)