mlNODS
split machine learning data sets using graph partioning
Appropriate assessments require appropriate splits of training and evaluation data sets and this in turn requires clustering. For many problems single-linkage clustering suffices toward this end. Encountering a problem that could not be solved by such a standard procedure, we developed a simple graph-based tool for the creation of unique data sets.
mlNODS is a graph-based method which allows to split original data sets into non-overlapping sets that cannot be grouped without removing some of the data. mlNODS optimizes the following constraints: (1) retain as many data points as possible, and (2) remove any overlap between two split sets. The nodes of our graph are the original data points, and the connections are measures for the similarity between nodes (e.g. sequence similarity for protein sets). The method begins by building the full graph and proceeds by removing nodes in order to optimally fit the constraints to the similarity table. mlNODS is applicable to any prob- lem and has the additional benefit of allowing overlap within one set (i.e. training on homologues) while it is disal- lowed between two sets (i.e. training and testing do not overlap).
usage: mlnods [-h] -s SPLITS -c CUTOFF [-l LIMIT] -e EDGES_FILE
[-f EDGES_FORMAT] -n NODES_FILE [-a] [-r RANDOM]
[-o OUTFOLDER] [-v] [-q] [--version]
This is a script that will create independent sets of data
Version: 1.0 [03/14/20]
optional arguments:
-h, --help show this help message and exit
-s SPLITS, --splits SPLITS
number of splits required
-c CUTOFF, --cutoff CUTOFF
similarity cutoff in the units of link scores
-l LIMIT, --limit LIMIT
limit on the number of links for each node (default=0, infinity)
-e EDGES_FILE, --edges EDGES_FILE
file containing a table of instances with link scores for each pair
-f EDGES_FORMAT, --format EDGES_FORMAT
format of the table file
blast : takes a list of -m 9 formated blast files and builds a table based on seqID
hssp : takes a list of -m 9 formated blast files, runs HSSP scoring script and builds an HSSP distance table
self<int> : space/tab separated table file, similarity score in column <int>
eg "ID1 ID2 similarity_score" will be addressed as self3 (default=self5)
-n NODES_FILE, --nodes NODES_FILE
instance file containing IDs of all instances being considered
IDs are case-independent (eg ABC = abc)
IDs are always preceeded by ">" and followed by a white space.
No white spaces are allowed in an ID.
If score is provided for an ID, it should be surrounded by spaces and directly follow the ID
(eg. >abl1_human 10 gene associated with ....)
Everything between two IDs is printed in the junction files, but not considered in evaluation
-a, --abundance the option to score
false : score retrieved from instance file, range [0-100], default=50 when missing
true : score approximated by actual number of times an ID appears in the instance file
-r RANDOM, --random RANDOM
set a fixed random seed to generate consistent partitions
-o OUTFOLDER, --outfolder OUTFOLDER
path to output folder (default=<current directory>
-v, --verbose set verbosity level
-q, --quiet no logging to stdout
--version show program's version number and exit
If an ID is present in the instance file, but not in the table file the ID is considered to not be linked to anything else
If an ID is present in the table file but not in the instance file, it is ignored
mlnods was developed by Yana Bromberg and refactored by Maximilian Miller.
Feel free to contact us for support at services@bromberglab.org.
This software is licensed under [NPOSL-3.0](http://opensource.org/licenses/NPOSL-3.0)
Metadata
Release files for mlnods 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mlnods-1.3.tar.gz | 25.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mlnods-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.2 kB
Release files / mlnods-1.3.tar.gz
| Download URL | mlnods-1.3.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b8731bc1ad9988247c943ff67b4bf7fef52fb1daa128719713fecbaf10912e4
|
|
BLAKE2b-256 checksum How to use checksums |
4729518cb64b5223d9b0cec66252580d3a855ada41191d101e2a2544f890c2bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Release files / mlnods-1.3-py3-none-any.whl
| Download URL | mlnods-1.3-py3-none-any.whl |
|---|---|
| Size | 26.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d105b8b30530e2f7b26cd4352e7f709b36bee5ae2665519f459889f6b53658e0
|
|
BLAKE2b-256 checksum How to use checksums |
2b1d3cc45844834e0d944ff5a43f08999b383fa5c013fde87d08ae67f6392ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Security for mlnods 1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.