コード例 #1
0
    print param

    # Configure cluster folders for data input and output
    output_folder = "/export/clusterdata/mmontoya/ResultsDSN1shit/"
    dataset_folder = "/export/clusterdata/mmontoya/data/"

if (Spyder_exec == 1):  # If it is executed from spyder
    import os
    import sys
    whole_path = os.path.abspath('')
    folder_name = os.path.basename(whole_path)
    root_path = whole_path.split(folder_name)[0]
    sys.path.append(root_path)  # Include the root path into the "import" paths

    import import_folders
    import_folders.imp_folders(root_path)

    output_folder = "../Results/"
    dataset_folder = "../data/"

if (Console_exec == 1):  # If executed using command line from root folder.
    import os
    import sys
    ##################
    """ Aparently os and sys references are from the dir where you execute
    and "import" acts from the directory the file executes ! Hijo de puta """
    ##################
    # That is why the first thing we do is importing the main folder so
    # that we can import "clusterizer"

    sys.path.append(os.path.abspath(''))
コード例 #2
0
            Returns = Returns  # Maybe multiplied by  n_gammas

            if (Returns < C):  # Stability check
                return l + 1

            if (last_n_gammas < C * 10):  # Low value check
                return l + 1

    return ng  # If it does not stop before the max


import os
import numpy as np
import import_folders

import_folders.imp_folders(os.path.abspath(''))
import manutils as mu
import results_reader as rd
import matplotlib.pyplot as plt
import pickle_lib as pkl

plt.close("all")
""" THIS CODE READS THE INTERMEDIATE RESULTS OF THE LAYERS AND PLOTS THEM"""
""" FOR NOW ONLY ONE RUN PER FILE WITH NO CV !!!!! """

#################  PARAMETROS DEL BARRIDO ##################
## Here we introduce the init and end values of the cluster
## These are constant
fo_list = [0]
Learning_Rate_list = [0]
BatchSize_list = [3]