1c070625a4d30658f50a937b797eea522ff4ecda,librosa/chords.py,,load_model,#,11

Before Change


    """	

    // Un-pickle the saved parameters
    Chord_Parameters = pickle.load( open( model, "r") )

    // Set up in sklearn"s framework
    Chord_symbols = Chord_Parameters[ "chord_names" ]

After Change


    """	

    // Un-pickle the saved parameters
    with open(model, "r") as f:
        Chord_Parameters = pickle.load(f)

    // Set up in sklearn"s framework
    Chord_symbols = Chord_Parameters[ "chord_names" ]

    // number of chords = number of symbols
    n_states = len( Chord_symbols )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: librosa/librosa
Commit Name: 1c070625a4d30658f50a937b797eea522ff4ecda
Time: 2013-12-31
Author: brm2132@columbia.edu
File Name: librosa/chords.py
Class Name:
Method Name: load_model


Project Name: undertheseanlp/underthesea
Commit Name: 86c12a45517449229954229425a91190ecb3a9be
Time: 2017-08-24
Author: brother.rain.1024@gmail.com
File Name: underthesea/dictionary/__init__.py
Class Name: Dictionary
Method Name: __init__


Project Name: nilmtk/nilmtk
Commit Name: 1f32f952d84f0d44fcfe03367d3834d2464b63a0
Time: 2018-04-22
Author: 10246101+PMeira@users.noreply.github.com
File Name: nilmtk/disaggregate/combinatorial_optimisation.py
Class Name: CombinatorialOptimisation
Method Name: import_model