d29fbf497b46ef690c5c3187f3e6d6ff2a07fe12,lxmls/deep_learning/mlp.py,NumpyMLP,load,#NumpyMLP#Any#,202

Before Change


        Load model
        
        with open(model_path) as fid:
            par = cPickle.load(fid, cPickle.HIGHEST_PROTOCOL)
            params = par[:len(par)//2]
            actvfunc = par[len(par)//2:]
        return params, actvfunc

    def plot_weights(self, show=True, aspect="auto"):
        

After Change



        // Configuration un yaml format
        config_file = "%s/config.yml" % model_folder
        config = load_config(config_file)

        // Computation graph parameters as pickle file
        parameter_file = "%s/parameters.pkl" % model_folder
        loaded_parameters = load_parameters(parameter_file)

        return config, loaded_parameters

    def save(self, model_folder):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: LxMLS/lxmls-toolkit
Commit Name: d29fbf497b46ef690c5c3187f3e6d6ff2a07fe12
Time: 2018-01-28
Author: ramon@astudillo.com
File Name: lxmls/deep_learning/mlp.py
Class Name: NumpyMLP
Method Name: load


Project Name: LxMLS/lxmls-toolkit
Commit Name: 7d4d63db34d96a6d6d2c1b60bc14ffa9f0ce8919
Time: 2018-01-30
Author: ramon@astudillo.com
File Name: lxmls/deep_learning/mlp.py
Class Name: NumpyMLP
Method Name: load


Project Name: PPPLDeepLearning/plasma-python
Commit Name: 30f8696647af482f34e88661c43bf373b84a8da5
Time: 2017-05-29
Author: jk7@tigergpu.princeton.edu
File Name: plasma/models/shallow_runner.py
Class Name:
Method Name: train


Project Name: LxMLS/lxmls-toolkit
Commit Name: d29fbf497b46ef690c5c3187f3e6d6ff2a07fe12
Time: 2018-01-28
Author: ramon@astudillo.com
File Name: lxmls/deep_learning/mlp.py
Class Name: NumpyMLP
Method Name: load