Show code
import pandas as pd
import numpy as np
import os
import sys
sys.path.append("../python")
import general
import visualizations
import incremental_information as incInffrom IPython.display import HTML
HTML('''<script>
code_show=true;
function code_toggle() {
if (code_show){
$('div.input').hide();
} else {
$('div.input').show();
}
code_show = !code_show
}
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" value="Click here to toggle on/off the raw code."></form>''')params = {'OUTPUT' : {'path' : os.path.join('output_html', 'incremental_information'),
'name' : 'incremental_information_20201010'},
'SIMULATION' : { 'n_samples' : 10000,
'pctiles' : [0.25,0.5,0.75,0.9,0.95,0.99],
'elapsed_times' : [0.1, 0.5, 1, 2, 5, 10],
'gaussian' : {'mu' : 6, 'sigma' : 2},
'exponential' : {'lambda': 0.1},
'gamma' : {'alpha' : 0.4},
'lognormal' : {'mu' : 0.5, 'sigma' : 1},
'powerLaw' : {'xmin' : 1, 'alpha': 2},
'empirical_wFailure' : {'p_success' : 0.5}}}--------------------------------------------------------------------------- NameError Traceback (most recent call last) Input In [4], in <module> ----> 1 ordered_dists = incInf.simulateOrderedDists(params) NameError: name 'incInf' is not defined