Mercurial > hg > plosone_underreview
comparison notebooks/sensitivity_experiment.ipynb @ 19:0bba6f63f4fd branch-tests
some edits in notebook
author | mpanteli <m.x.panteli@gmail.com> |
---|---|
date | Wed, 13 Sep 2017 12:09:55 +0100 |
parents | ed109218dd4b |
children | 206fdeff4641 |
comparison
equal
deleted
inserted
replaced
18:ed109218dd4b | 19:0bba6f63f4fd |
---|---|
1 { | 1 { |
2 "cells": [ | 2 "cells": [ |
3 { | 3 { |
4 "cell_type": "code", | 4 "cell_type": "code", |
5 "execution_count": 2, | 5 "execution_count": 8, |
6 "metadata": {}, | 6 "metadata": {}, |
7 "outputs": [ | 7 "outputs": [ |
8 { | 8 { |
9 "name": "stdout", | 9 "name": "stdout", |
10 "output_type": "stream", | 10 "output_type": "stream", |
31 "import scripts.outliers as outliers" | 31 "import scripts.outliers as outliers" |
32 ] | 32 ] |
33 }, | 33 }, |
34 { | 34 { |
35 "cell_type": "code", | 35 "cell_type": "code", |
36 "execution_count": 4, | 36 "execution_count": null, |
37 "metadata": {}, | 37 "metadata": { |
38 "collapsed": true | |
39 }, | |
38 "outputs": [], | 40 "outputs": [], |
39 "source": [ | 41 "source": [ |
40 "OUTPUT_FILES = load_dataset.OUTPUT_FILES\n", | 42 "OUTPUT_FILES = load_dataset.OUTPUT_FILES\n", |
41 "n_iters = 10" | 43 "n_iters = 10\n", |
44 "df = load_dataset.sample_dataset(csv_file=load_dataset.METADATA_FILE)" | |
42 ] | 45 ] |
43 }, | 46 }, |
44 { | 47 { |
45 "cell_type": "code", | 48 "cell_type": "code", |
46 "execution_count": null, | 49 "execution_count": null, |
47 "metadata": {}, | 50 "metadata": { |
51 "collapsed": true | |
52 }, | |
48 "outputs": [], | 53 "outputs": [], |
49 "source": [ | 54 "source": [ |
50 "df = load_dataset.sample_dataset(csv_file=load_dataset.METADATA_FILE)\n", | |
51 "for n in range(n_iters):\n", | 55 "for n in range(n_iters):\n", |
52 " print \"iteration %d\" % n\n", | 56 " print \"iteration %d\" % n\n", |
53 " load_dataset.OUTPUT_FILES = [output_file.split('.pickle')[0]+'_'+str(n)+'.pickle' for \n", | 57 " load_dataset.OUTPUT_FILES = [output_file.split('.pickle')[0]+'_'+str(n)+'.pickle' for \n", |
54 " output_file in OUTPUT_FILES]\n", | 58 " output_file in OUTPUT_FILES]\n", |
55 " load_dataset.features_for_train_test_sets(df, write_output=True)" | 59 " load_dataset.features_for_train_test_sets(df, write_output=True)" |
94 "metadata": { | 98 "metadata": { |
95 "kernelspec": { | 99 "kernelspec": { |
96 "display_name": "Python 2", | 100 "display_name": "Python 2", |
97 "language": "python", | 101 "language": "python", |
98 "name": "python2" | 102 "name": "python2" |
103 }, | |
104 "language_info": { | |
105 "codemirror_mode": { | |
106 "name": "ipython", | |
107 "version": 2 | |
108 }, | |
109 "file_extension": ".py", | |
110 "mimetype": "text/x-python", | |
111 "name": "python", | |
112 "nbconvert_exporter": "python", | |
113 "pygments_lexer": "ipython2", | |
114 "version": "2.7.12" | |
99 } | 115 } |
100 }, | 116 }, |
101 "nbformat": 4, | 117 "nbformat": 4, |
102 "nbformat_minor": 1 | 118 "nbformat_minor": 1 |
103 } | 119 } |