This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%%------------------------------------------------------------------- | |
| %%% @author <andelf@gmail.com> | |
| %%% @copyright (C) 2013, | |
| %%% @doc | |
| %%% | |
| %%% @end | |
| %%% Created : 18 Apr 2013 by <andelf@gmail.com> | |
| %%%------------------------------------------------------------------- | |
| -module(dns_proxy_srv). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X = fun(Bin) -> | |
| list_to_binary( | |
| lists:flatmap( fun($&) -> "\\&"; ($\\) -> "\\\\"; (Chr) -> [Chr] end, binary_to_list(Bin)) | |
| ) | |
| end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import numpy | |
| from sklearn import preprocessing, neighbors, metrics | |
| from sklearn.cross_validation import train_test_split | |
| __author__ = 'bryanhunt' | |
| # Imports for Module 4 | |
| # Code common to all modeles from module 3 onwards |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import numpy | |
| from sklearn import neighbors, preprocessing | |
| __author__ = 'bryanhunt' | |
| # Imports for Module 4 | |
| # Code common to all modeles from module 3 onwards | |
| # NB. The X and yTransformed variables come from the preprocessing in the previous module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import numpy | |
| from sklearn import neighbors, preprocessing | |
| __author__ = 'bryanhunt' | |
| # Imports for Module 4 | |
| # Code common to all modeles from module 3 onwards | |
| # NB. The X and yTransformed variables come from the preprocessing in the previous module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'bryanhunt' | |
| # making a heatmap of the breast cancer data to determine colinearity | |
| import csv | |
| import numpy | |
| from sklearn import preprocessing | |
| fileName = "wdbc.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'bryanhunt' | |
| import csv | |
| import numpy | |
| import scipy | |
| import matplotlib.pyplot as plt | |
| from sklearn import preprocessing | |
| from sklearn.cross_validation import train_test_split | |
| from sklearn import metrics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'bryanhunt' | |
| import matplotlib.pyplot as plt | |
| from sklearn.datasets import load_iris | |
| iris = load_iris() | |
| X = iris.data | |
| labels = iris.target_names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __author__ = 'bryanhunt' | |
| import matplotlib.pyplot as plt | |
| from sklearn.datasets import load_iris | |
| iris = load_iris() | |
| X = iris.data | |
| labels = iris.target_names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(typeof(jarmon) === 'undefined') { | |
| var jarmon = {}; | |
| } | |
| jarmon.TAB_RECIPES_STANDARD = [ | |
| ['System', ['cpu', 'memory','load','swap']], | |
| ['Network', ['eth0','eth1','lo','data']], | |
| ['Disks', ['sda5_time', 'sda5_merged', 'sda5_ops', 'sda5_data' ,'lvm' ]], | |
| ['All Processes', ['all_process']], | |
| ['Asterisk CPU and Mem', [ 'asterisk_all', 'asterisk_counts' , 'asterisk_procs' ]], |