Skip to main content

install

pip install biofilm
conda install -c conda-forge biofilm

Optimization options:

--methods str+ any  'extra_trees', 'passive_aggressive', 'random_forest', 'sgd', 'gradient_boosting', 'mlp'
--out str jsongoeshere
--n_jobs int 1
--time int 3600
--memoryMBthread int 8000
--randinit int 1337  # should be the same as the one in data.py
--preprocess bool False
--tmp_folder str
--refit bool True
--instancegroups str   # a jsonfile containing a dictionary instance_name -> group name
--autosk_debug bool False   # autosklearn logging
--autosk_debugfile str autosklearn.log
--autosk_debugout str+ file_handler  # console   is another option, chooses where to output debug
--ensemble int 1  # ensemble size, autosklearn will combine the best models

Feature selection options:

go to biofilm and run python biofilm-features.py -h

# feature selection options
--method str lasso  or svm or all or corr or variance
--out str numpycompressdumpgoeshere
--plot bool False
--svmparamrange float+ 0.01 0.15 0.001

# data reading options
--infile str myNumpyDump
--randinit int -1
--folds int 5
--subsample int -1
--Z bool False

data loading

a) tools.ndumpfile([X,y, featurenames, instancenames],fname) where feature and instancenames are optional or
b) provide --loader whose read function will be called (examples/npzloader)

defaultformat: X,y in a npz dump, features and instances get enumerated
a custom dataloader: X,y, features, instances
loadfoldsreturns: (X,Y,x,y) features namesOfTestInstances

outputs

optimize:
	out.model: {score:score, modelparams:modelparams}
	out.csv: instanceId, reallabel, predicted label, probability
feature selection:
	out: featuremask, featureproba, featureId

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biofilm-0.1.126.tar.gz (17.0 kB view details)

Uploaded Source

File details

Details for the file biofilm-0.1.126.tar.gz.

File metadata

  • Download URL: biofilm-0.1.126.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for biofilm-0.1.126.tar.gz
Algorithm Hash digest
SHA256 aa8f773a2b0d7862ed4a02f53312405fc86704024cfee963782eab2747c36805
MD5 0a6652acce672611b220eebd5487adad
BLAKE2b-256 67c5b2dd6e3a3bab0926e92e1974c0f67f8fcdcc4210159d1e12a36c6bb69f17

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.126 This release

1 file

0.1.125

1 file

0.1.124

1 file

0.0.113

1 file

0.0.111

1 file

0.0.110

1 file

0.0.102

1 file

0.0.101

1 file

0.0.100

1 file

0.0.98

1 file

0.0.97

1 file

0.0.94

1 file

0.0.93

1 file

0.0.92

1 file

0.0.91

1 file

0.0.88

1 file

0.0.87

1 file

0.0.81

1 file

0.0.78

1 file

0.0.76

1 file

0.0.72

1 file

0.0.71

1 file

0.0.70

1 file

0.0.69

1 file

0.0.66

1 file

0.0.63

1 file

0.0.60

1 file

0.0.59

1 file

0.0.58

1 file

0.0.57

1 file

0.0.3

1 file

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page