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

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

src/p/y/PyPursuit-1.1.0/PyMP/mp.py   PyPursuit(Download)
    best_atom = dictionary.get_best_atom(debug)
    if best_atom is None:
        _Logger.info('No atom selected anymore')
 
    if debug > 0:
    best_atom = dictionary.get_best_atom(debug)
    if best_atom is None:
        _Logger.info('No atom selected anymore')
 
    if debug > 0:
    best_atom = dictionary.get_best_atom(debug)
    if best_atom is None:
        _Logger.info('No atom selected anymore')
 
    if debug > 0:
    if debug is not None:
        _Logger.set_level(debug)
    _Logger.info("Call to mp.mp_joint")
    # We now work on a list of signals: we have a list of approx and residuals
    res_sig_list = []
    while (approxSRR < target_srr) & (iterationNumber < max_it_num):
 
        _Logger.info("mp LOOP : iteration " + str(iterationNumber + 1))
        # Compute inner products and selects the best atom
        dictionary.update(res_sig_list, iterationNumber)

src/p/y/PyPursuit-1.1.0/PyMP/approx.py   PyPursuit(Download)
 
            if len(self.atoms) == 0:
                _Logger.info("No Atoms")
                return None
 
    def dump(self, dumpFilePath):
        import cPickle
 
        output = open(dumpFilePath, 'wb')
        _Logger.info("Dumping approx to  " + dumpFilePath)
        cPickle.dump(self, output, protocol=0)
        _Logger.info("Done ")