def run_hdp(): """ This method performs HDP. :return: """ all_projects = get_all_projects() # Get a dictionary of all projects and their respective files. result = {} # Store results here for _, v in all_projects.iteritems(): # Create a template for results. for kk in v.keys(): result.update({kk: { 'pd': [], 'pf': [] }}) for key_t, value_t in all_projects.iteritems(): # <key/value>_s denotes source for key_s, value_s in all_projects.iteritems(): # <key/value>_s denotes target if not key_s == key_t: # Ignore cases where source=target print("Source: {}, Target: {}".format(key_s, key_t)) hdp_runner = HDP(value_s, value_t) PD, PF = 0, 0 oldname = newname = None for name, pd, pf in hdp_runner.process(): result[name]['pd'].append(pd) result[name]['pf'].append(pf) return result
def run_hdp(): """ This method performs HDP. :return: """ all_projects = get_all_projects( ) # Get a dictionary of all projects and their respective files. result = {} # Store results here for _, v in all_projects.iteritems(): # Create a template for results. for kk in v.keys(): result.update({kk: {'pd': [], 'pf': []}}) for key_t, value_t in all_projects.iteritems( ): # <key/value>_s denotes source for key_s, value_s in all_projects.iteritems( ): # <key/value>_s denotes target if not key_s == key_t: # Ignore cases where source=target print("Source: {}, Target: {}".format(key_s, key_t)) hdp_runner = HDP(value_s, value_t) PD, PF = 0, 0 oldname = newname = None for name, pd, pf in hdp_runner.process(): result[name]['pd'].append(pd) result[name]['pf'].append(pf) return result
def execute(): """ This method performs HDP. :return: """ all_projects = get_all_projects() # Get a dictionary of all projects and their respective pathnames. result = {} # Store results here for target in all_projects.keys(): for source in all_projects.keys(): if source == target: # This ensures transfer happens within community print("Target Community: {} | Source Community: {}".format(target, source)) seer0(all_projects[source], all_projects[target])
def execute(): """ This method performs HDP. :return: """ all_projects = get_all_projects() # Get a dictionary of all projects and their respective pathnames. project_pairs = [] result = {} # Store results here for target in all_projects.keys(): for source in all_projects.keys(): if not source == target: print("Target Community: {} | Source Community: {}".format(target, source)) seer(all_projects[source], all_projects[target])
def get_source_target(): """ This method performs HDP. :return: """ all_projects = get_all_projects() # Get a dictionary of all projects and their respective pathnames. project_pairs = [] count = 0 # I use this for referencing saved pickle files for target in all_projects.keys(): for source in all_projects.keys(): if not source == target: count += 1 project_pairs.append((all_projects[source], all_projects[target], count)) return project_pairs
def execute(): """ This method performs HDP. :return: """ all_projects = get_all_projects( ) # Get a dictionary of all projects and their respective pathnames. result = {} # Store results here for target in all_projects.keys(): for source in all_projects.keys(): if source == target: # This ensures transfer happens within community print("Target Community: {} | Source Community: {}".format( target, source)) seer0(all_projects[source], all_projects[target])
def get_source_target(): """ This method performs HDP. :return: """ all_projects = get_all_projects() # Get a dictionary of all projects and their respective pathnames. project_pairs = [] count = 0 # I use this for referencing saved pickle files for target in all_projects.keys(): for source in all_projects.keys(): if source == target: count += 1 project_pairs.append((all_projects[source], all_projects[target], count)) return project_pairs
def execute(): """ This method performs HDP. :return: """ all_projects = get_all_projects( ) # Get a dictionary of all projects and their respective pathnames. project_pairs = [] result = {} # Store results here for target in all_projects.keys(): for source in all_projects.keys(): if source == target: print("Target Community: {} | Source Community: {}".format( target, source)) tca_plus(all_projects[source], all_projects[target])
def tnb_jur(): from data.handler import get_all_projects all = get_all_projects() apache = all["Apache"] return tnb(apache, apache, n_rep=1)
def seer_jur(): from data.handler import get_all_projects all = get_all_projects() apache = all["Apache"] return seer(apache, apache, n_rep=10, n_redo=5)
def tnb_jur(): from data.handler import get_all_projects all = get_all_projects() apache = all["Apache"] return vcb(apache, apache, n_rep=1)
def tnb_jur(): from data.handler import get_all_projects all = get_all_projects() # set_trace() apache = all["Apache"] return bellw(apache, apache, n_rep=10)