Package ML
[hide private]
[frames] | no frames]

Package ML

source code

module containing machine learning code 



Submodules [hide private]
  • ML.AnalyzeComposite: command line utility to report on the contributions of descriptors to tree-based composite models Usage: AnalyzeComposite [optional args] <models> <models>: file name(s) of pickled composite model(s) (this is the name of the db table if using a database) Optional Arguments: -n number: the number of levels of each model to consider -d dbname: the database from which to read the models -N Note: the note string to search for to pull models from the database -X: Send the results to Excel.
  • ML.BuildComposite: command line utility for building composite models #DOC **Usage** BuildComposite [optional args] filename Unless indicated otherwise (via command line arguments), _filename_ is a QDAT file.
  • ML.Cluster
  • ML.Composite
    • ML.Composite.AdjustComposite: functionality to allow adjusting composite model contents
    • ML.Composite.BayesComposite: code for dealing with Bayesian composite models For a model to be useable here, it should support the following API: - _ClassifyExample(example)_, returns a classification Other compatibility notes: 1) To use _Composite.Grow_ there must be some kind of builder functionality which returns a 2-tuple containing (model,percent accuracy).
    • ML.Composite.Composite: code for dealing with composite models For a model to be useable here, it should support the following API: - _ClassifyExample(example)_, returns a classification Other compatibility notes: 1) To use _Composite.Grow_ there must be some kind of builder functionality which returns a 2-tuple containing (model,percent accuracy).
  • ML.CompositeRun: contains a class to store parameters for and results from...
  • ML.Data
  • ML.DecTree: Here we're implementing the Decision Tree stuff found in Chapter 3 of Tom Mitchell's Machine Learning Book.
  • ML.Descriptors
  • ML.EnrichPlot: Command line tool to construct an enrichment plot from saved composite models Usage: EnrichPlot [optional args] -d dbname -t tablename <models> Required Arguments: -d "dbName": the name of the database for screening -t "tablename": provide the name of the table with the data to be screened <models>: file name(s) of pickled composite model(s).
  • ML.FeatureSelect
  • ML.GrowComposite: command line utility for growing composite models **Usage** _GrowComposite [optional args] filename_ **Command Line Arguments** - -n *count*: number of new models to build - -C *pickle file name*: name of file containing composite upon which to build.
  • ML.InfoTheory: Information Theory functionality
  • ML.KNN: Here is the implementation for K-nearest neighbors
  • ML.MLUtils
    • ML.MLUtils.VoteImg: functionality for generating an image showing the results of a composite model voting on a data set...
  • ML.MatOps: Matrix operations which may or may not come in handy some day...
  • ML.ModelPackage
  • ML.NaiveBayes: An implementation of the Naive Bayes Classifier
  • ML.Neural
    • ML.Neural.ActFuncs: Activation functions for neural network nodes Activation functions should implement the following API: - _Eval(input)_: returns the value of the function at a given point - _Deriv(input)_: returns the derivative of the function at a given point The current Backprop implementation also requires: - _DerivFromVal(val)_: returns the derivative of the function when its value is val In all cases _input_ is a float as is the value returned.
    • ML.Neural.CrossValidate: handles doing cross validation with neural nets This is, perhaps, a little misleading.
    • ML.Neural.NetNode: Contains the class _NetNode_ which is used to represent nodes in neural nets **Network Architecture:** A tacit assumption in all of this stuff is that we're dealing with feedforward networks.
    • ML.Neural.Network: Contains the class _Network_ which is used to represent neural nets **Network Architecture:** A tacit assumption in all of this stuff is that we're dealing with feedforward networks.
    • ML.Neural.Trainers: Training algorithms for feed-forward neural nets Unless noted otherwise, algorithms and notation are taken from: "Artificial Neural Networks: Theory and Applications", Dan W.
  • ML.SLT
  • ML.ScreenComposite: command line utility for screening composite models **Usage** _ScreenComposite [optional args] modelfile(s) datafile_ Unless indicated otherwise (via command line arguments), _modelfile_ is a file containing a pickled composite model and _filename_ is a QDAT file.
  • ML.files: Generic file manipulation stuff