Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge lightning into main #55

Merged
merged 351 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
83fd1d9
Add sanitizeoptions and initlaizeblocks to baseCV
luigibonati Feb 17, 2023
c218d04
Initialize default options with sanitize_options
luigibonati Feb 17, 2023
0a46413
changed loss signature from options to kwargs
luigibonati Feb 17, 2023
4f1d58b
Change class slicing from view to nonzero as tuple
EnricoTrizio Feb 22, 2023
a875941
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Feb 22, 2023
371c02c
update dict of options instead of overloading
luigibonati Feb 22, 2023
6c3764c
Merge branch 'lightning' of github.com:luigibonati/mlcvs into lightning
luigibonati Feb 22, 2023
e183d49
updated todo list
luigibonati Feb 22, 2023
c9612ef
Fix error in training step forward
EnricoTrizio Feb 23, 2023
60469ff
Fix Tensor typo
EnricoTrizio Feb 23, 2023
4ed0df2
updated todolist
luigibonati Feb 23, 2023
96bcab4
renamed FastTensorDataLoader to FastDictionaryLoader
luigibonati Feb 23, 2023
1c1cdc4
renamed TensorDataModule in DictionaryDatamodule
luigibonati Feb 23, 2023
84e6bcf
fixed dataset test
luigibonati Feb 23, 2023
0c3557d
add dropout / batchnorm/custom activ to feedforward
luigibonati Feb 24, 2023
6e5930c
added object for computing statistics
luigibonati Feb 26, 2023
b67343f
created base transform class
luigibonati Feb 26, 2023
810d69f
new normalization module
luigibonati Feb 26, 2023
284ab42
fix doc in normalization
luigibonati Feb 26, 2023
93eb47b
added initialize transform to base cv
luigibonati Feb 26, 2023
5fd3411
removed normOut from blocks
luigibonati Feb 26, 2023
742318e
added pre/post processing modules in basecv
luigibonati Feb 27, 2023
b31676f
renamed utils in cv
luigibonati Feb 27, 2023
8aad0f3
fix in_features and out_features when using pre/post processing
luigibonati Feb 27, 2023
676c4c7
add set_custom and set_from_stats to normalization
luigibonati Feb 27, 2023
0c83540
renamed models in nn
luigibonati Mar 1, 2023
94efccb
Edit refactoring
EnricoTrizio Mar 1, 2023
e02a82d
Draft pairwise distances
EnricoTrizio Mar 1, 2023
74fe290
updated todo list
luigibonati Mar 1, 2023
339288c
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 1, 2023
dca44ae
Created base stats class
EnricoTrizio Mar 1, 2023
0cb83f9
remove old notebook
luigibonati Mar 1, 2023
52ca680
updated TODO
luigibonati Mar 1, 2023
a9b7b95
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 1, 2023
1d1db4f
Added minimal doc
EnricoTrizio Mar 1, 2023
37c158a
move utils.data to data and fix datamodule returns of dataloaders
luigibonati Mar 1, 2023
21760ac
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 1, 2023
a25da4f
removed decorators and hooks
luigibonati Mar 1, 2023
3e7666f
copy loss options in training_step
luigibonati Mar 1, 2023
1658e52
clean up imports
luigibonati Mar 1, 2023
1b0c9f8
reset documentation
luigibonati Mar 1, 2023
365606d
added nbmake to CI
luigibonati Mar 1, 2023
5f65144
switch from conda to mamba in rtd
luigibonati Mar 2, 2023
725b165
fix rtd yml
luigibonati Mar 2, 2023
9b0831a
fix pyton version in rtd
luigibonati Mar 2, 2023
8e53c1c
Remove decorators
EnricoTrizio Mar 2, 2023
4e99fa7
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 2, 2023
f656bf3
fix doc readme installation
EnricoTrizio Mar 2, 2023
3e95e00
fix python version in rtd
luigibonati Mar 2, 2023
50c8ebf
removed debug annotations
luigibonati Mar 2, 2023
5be99c9
added ipykernel in rtd dep
luigibonati Mar 2, 2023
1bd7703
Do not overwrite DeepLDA.n_states given in init
andrrizzi Mar 2, 2023
d0bde4f
sanitize range in normalization
luigibonati Mar 2, 2023
f2458c0
Merge branch 'lightning' of github.com:luigibonati/mlcvs into lightning
luigibonati Mar 2, 2023
578e790
Added utils for distance-based transforms
EnricoTrizio Mar 8, 2023
de05272
Added adjacency-matrix transform
EnricoTrizio Mar 8, 2023
97acc6c
fixed torch import
EnricoTrizio Mar 8, 2023
8490c5c
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 8, 2023
dc2ee47
changed torch.tensor to torch.Tensor
luigibonati Mar 10, 2023
16e09db
renamed Build_TimeLagged_Dataset in Create_TimeLagged_Dataset
luigibonati Mar 10, 2023
f8771fc
adapted create_dataset_from_file function
luigibonati Mar 10, 2023
0aee6fa
renamed create time lagged dataset
luigibonati Mar 10, 2023
53ae0b1
moved timelagged from data to utils
luigibonati Mar 10, 2023
dcbe19e
Adapted format of fucntion and fix test
EnricoTrizio Mar 10, 2023
7b68f17
Added radius_graph transform ansd its tests
EnricoTrizio Mar 10, 2023
4b27a01
Fix tensor to Tensor
EnricoTrizio Mar 10, 2023
1f7e3e0
Fix tensor to Tensor
EnricoTrizio Mar 10, 2023
5f99f92
fix tensor to Tensor
EnricoTrizio Mar 10, 2023
090a751
fix tensor to Tensor
EnricoTrizio Mar 10, 2023
93d6e89
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 10, 2023
26a8ffe
created switching_functions transform and its test, fixed imports
EnricoTrizio Mar 10, 2023
d132be1
Refactor pariwise_distances to do only pairwise distances, added tests
EnricoTrizio Mar 10, 2023
e8f9c9a
updated transform REFACTORING.md
EnricoTrizio Mar 10, 2023
784e602
added metric callbacks
luigibonati Mar 12, 2023
f3011f2
created nn utils with activation
luigibonati Mar 12, 2023
396884c
fix tranform init and cell scale factor in compute distances
luigibonati Mar 13, 2023
fc08368
Fixed input shape asserts in distances utils
EnricoTrizio Mar 13, 2023
ab66042
added plot helper functions for tutorials
luigibonati Mar 13, 2023
f333c05
added __repr__ to data classes
luigibonati Mar 14, 2023
4e9470c
renamed runningstats into statistics
luigibonati Mar 14, 2023
fcb407e
fixed plot_metrics function
luigibonati Mar 14, 2023
af763ea
added simulation data for 2d models for tutorials
luigibonati Mar 14, 2023
d13181e
ignore notebooks inside data folder for pytest
luigibonati Mar 14, 2023
ffcc8e4
Added in out features to transform classes
EnricoTrizio Mar 14, 2023
2cb0245
Fixed init indentation
EnricoTrizio Mar 14, 2023
807da3b
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 14, 2023
c8219f3
Added flatten to adjacency matrix
EnricoTrizio Mar 14, 2023
422b347
save hyperparams in base cv for load_checkpoint
luigibonati Mar 14, 2023
531dc47
change datamodule setup to avoid multiple shuffling
luigibonati Mar 14, 2023
dc702b5
Moved compute_adjacency_matrix to transform.utils and added transform…
EnricoTrizio Mar 14, 2023
e0bc0b0
Merge branch 'lightning' of github.com:luigibonati/mlcvs into lightning
luigibonati Mar 14, 2023
72a0365
fixed plot metrics helper function
luigibonati Mar 14, 2023
6665d6f
uploaded autoencoder basic tutorial
luigibonati Mar 14, 2023
9f2e85e
fix optional packages in import utils
luigibonati Mar 15, 2023
2766c81
Edit refactoring
EnricoTrizio Mar 16, 2023
bf829ad
Fix test failure tda
EnricoTrizio Mar 16, 2023
e4dc3ed
First implementation VAE CV
andrrizzi Mar 21, 2023
886fc51
Merge pull request #27 from luigibonati/vae
luigibonati Mar 21, 2023
5aafd0c
fixed typos
EnricoTrizio Mar 21, 2023
877c6ea
rename torch.tensor to torch.Tensor in fn signatures
luigibonati Mar 23, 2023
01786ba
closes rename forward_blocks in forward_cv #29
luigibonati Mar 24, 2023
0b8ac13
rename loss/optim options in kwargs
luigibonati Mar 24, 2023
6dd38b1
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Mar 24, 2023
3155473
rename sanitize_options in parse_options
luigibonati Mar 24, 2023
bf88507
fix #28 (move loss init before parsing options)
luigibonati Mar 24, 2023
acc9349
moved base cv methods to properties
luigibonati Mar 24, 2023
b0abd91
fix out features/ n_cvs in cvs
luigibonati Mar 24, 2023
699adde
Merge pull request #32 from luigibonati/basecvattrib
luigibonati Mar 25, 2023
3cae775
added new reweight mode to time-lagged datasets
luigibonati Mar 27, 2023
d94fc6b
added new reweight mode to time-lagged datasets
luigibonati Mar 27, 2023
2e0627c
Merge branch 'lightning' of github.com:luigibonati/mlcvs into lightning
luigibonati Mar 27, 2023
cbebad0
uploaded first version of notebooks
luigibonati Mar 30, 2023
9db22b7
added reduced_rank to TICA
pietronvll Mar 30, 2023
a9aaec2
fix parsing of normIn options
luigibonati Mar 31, 2023
fb64c73
fix representation of dataset
luigibonati Mar 31, 2023
c317dc0
change MSE_loss signature from diff to input, target
luigibonati Mar 31, 2023
06b5795
fix import VAE_CV
luigibonati Mar 31, 2023
436a019
fix deeptica notebook in tests
luigibonati Mar 31, 2023
3edc49b
Merge pull request #37 from luigibonati/fix_loss_signatures
luigibonati Mar 31, 2023
b7ce8fd
add option in ae/vae to compare with a different target
luigibonati Mar 31, 2023
6ee23db
clean up ae nb
luigibonati Mar 31, 2023
b243df9
allow dictionarydataset to be accesed via strings
luigibonati Mar 31, 2023
eaad380
change signature in elbo loss
luigibonati Apr 3, 2023
5bff317
added set_item to dataset and renamed dictionary member in dataloader
luigibonati Apr 3, 2023
5d40631
Merge pull request #38 from luigibonati/extend_autoencoder
luigibonati Apr 3, 2023
c9045eb
fixed default option in loss kwargs for regression_cv
luigibonati Apr 3, 2023
be3f6aa
uploaded first version of overview notebooks (#9)
luigibonati Apr 3, 2023
8459f50
Merge branch 'lightning' of github.com:luigibonati/mlcvs into lightning
luigibonati Apr 3, 2023
83e364a
fix doc callbacks
luigibonati Apr 3, 2023
9b71163
updated tutorial doc
luigibonati Apr 3, 2023
9cf6ce1
First draft overview
EnricoTrizio Apr 3, 2023
80181e3
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Apr 3, 2023
4427a02
removed tensorboard example in notebook
luigibonati Apr 4, 2023
2e1c3c5
updated doc api and start
luigibonati Apr 4, 2023
aa4595c
renamed methods/functions to pep8 standard (#39)
luigibonati Apr 4, 2023
e2b5e59
extend load_dataframe to support urls
luigibonati Apr 5, 2023
59dd4a5
use urllib to download data and skip test if internet not available
luigibonati Apr 5, 2023
e7422f1
Merge pull request #41 from luigibonati/load_data
luigibonati Apr 5, 2023
f525924
renamed cvs to comply with pep8 (#39)
luigibonati Apr 5, 2023
7f463b9
Edit overview of library
EnricoTrizio Apr 5, 2023
cc3f53a
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Apr 5, 2023
4454fd5
updated notebooks
luigibonati Apr 5, 2023
e9cadbe
rename notebooks
luigibonati Apr 5, 2023
96b7591
updated notebook overview and tae
luigibonati Apr 5, 2023
1a05618
added autocorrelation and fisher losses
luigibonati Apr 6, 2023
6f62507
Fix tests RegressionCV
andrrizzi Apr 6, 2023
271a397
Remove unnecessary parentheses
andrrizzi Apr 6, 2023
985e847
Fix RegressionCV tests
andrrizzi Apr 6, 2023
73917fd
AutocorrelationLoss class
andrrizzi Apr 6, 2023
bc3750f
ReduceEigenvaluesLoss class
andrrizzi Apr 6, 2023
7962721
ELBOGaussiansLoss class
andrrizzi Apr 6, 2023
9a3edc0
FisherDiscriminantLoss class
andrrizzi Apr 6, 2023
9ba37fd
MSELoss class
andrrizzi Apr 6, 2023
dcec295
TDALoss class
andrrizzi Apr 6, 2023
add340c
Add loss classes to __init__
andrrizzi Apr 6, 2023
7fa003f
Forgot to update __all__ in __init__.py
andrrizzi Apr 6, 2023
39902dc
Merge pull request #42 from luigibonati/loss-class
andrrizzi Apr 6, 2023
df42ad7
From function to class loss function
andrrizzi Apr 6, 2023
0b67b10
Fix tests RegressionCV
andrrizzi Apr 6, 2023
21fd4e2
Work around PyTorch magic for lambda assignment
andrrizzi Apr 6, 2023
24c0466
Call Module super constructor in init
andrrizzi Apr 6, 2023
c454d51
Fix kwargs name
andrrizzi Apr 6, 2023
0ca9bb7
Fix references to loss_kwargs in notebooks
andrrizzi Apr 6, 2023
969634a
Fix loss options on init in notebooks
andrrizzi Apr 6, 2023
0ca644c
Merge pull request #43 from luigibonati/loss-class2
andrrizzi Apr 7, 2023
16d4a9e
Raw docstring to support sphinx mathjax
andrrizzi Apr 7, 2023
9c9d7d6
Fix typo ValueError
andrrizzi Apr 7, 2023
36a6ce4
Extend tests DataModule
andrrizzi Apr 7, 2023
1e424ab
Remove unused variable
andrrizzi Apr 7, 2023
6b30784
added PCA class
luigibonati Apr 7, 2023
b3c6c99
update init stats and added test
luigibonati Apr 7, 2023
b5f76b2
fix lda doc
luigibonati Apr 7, 2023
65247c6
Fix mutable default argument and typing annotations
andrrizzi Apr 7, 2023
5cfe856
Added 3 states Muller plot util
EnricoTrizio Apr 7, 2023
09e8896
DeepTDA tutorial first commit
EnricoTrizio Apr 7, 2023
09a25bb
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Apr 7, 2023
d732dd3
Slight code simplification
andrrizzi Apr 7, 2023
95b99f0
Merge pull request #44 from luigibonati/pca
luigibonati Apr 7, 2023
27eb95b
Make random/dataset_split private
andrrizzi Apr 9, 2023
f9e9655
Fix argument name
andrrizzi Apr 9, 2023
a6a5b5b
PEP8 and typing fixes
andrrizzi Apr 9, 2023
9c9567d
Made some attributes properties
andrrizzi Apr 9, 2023
77fe9bd
Slit test into doctest example and test
andrrizzi Apr 10, 2023
6ddc133
Inheritance-safe constructor
andrrizzi Apr 10, 2023
30b90bc
Make dataset property
andrrizzi Apr 10, 2023
9455696
Fix docs and re-add dataset_len
andrrizzi Apr 10, 2023
4ec871d
Raise error if not DictDataset
andrrizzi Apr 10, 2023
5ef180f
FastDictionaryLoader supports multiple datasets
andrrizzi Apr 11, 2023
7b1d22d
More docstrings
andrrizzi Apr 11, 2023
4bae3c1
Refined DeepTDA muller tutorial
EnricoTrizio Apr 11, 2023
6cdaa03
DictionaryDataModule support for multiple datasets
andrrizzi Apr 11, 2023
365f08a
More doctest examples
andrrizzi Apr 11, 2023
38b00d7
sequential_split does not support integer lengths
andrrizzi Apr 11, 2023
6b5ac84
Merge pull request #45 from luigibonati/multi-datamodule
andrrizzi Apr 12, 2023
26ac7ac
Documented and tested package
pietronvll Apr 12, 2023
1130a7f
Merge branch 'lightning' into lightning
luigibonati Apr 12, 2023
16b3dbe
Merge pull request #36 from Pietronvll/lightning
luigibonati Apr 12, 2023
3c5e4ca
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Apr 13, 2023
1e7b02f
Fix typo in deepTDA loss
EnricoTrizio Apr 13, 2023
9095ddd
Fix FastDictionaryLoader.get_stats and keys for multiple datasets
andrrizzi Apr 14, 2023
c9889d4
Nicer error in setup_from_datamodule with multiple datasets
andrrizzi Apr 14, 2023
26d086d
Optional return of TDALoss terms
andrrizzi Apr 15, 2023
db928af
Fix typos
andrrizzi Apr 15, 2023
b6a53bc
Extend FisherDiscriminantLoss to multivariate features
andrrizzi Apr 16, 2023
826d95c
Fix arguments FisherDiscriminantLoss
andrrizzi Apr 16, 2023
ef950a5
Extend AutocorrelationLoss to multivariate features
andrrizzi Apr 16, 2023
56a9250
Fix bug inplace operation
andrrizzi Apr 16, 2023
a7e7115
FeedForward easier support of nonlinear output layer
andrrizzi Apr 17, 2023
c4cab55
Fix VAE bug on exporting torchscript
andrrizzi Apr 17, 2023
a39f798
Add Lorentzian regularization to FisherDiscriminantLoss
andrrizzi Apr 17, 2023
f80ed98
First implementation of MultiTaskCV
andrrizzi Apr 17, 2023
11b2cff
Fix tests feedforward
andrrizzi Apr 17, 2023
33fa009
Try fixing the permission denied in windows tests
andrrizzi Apr 17, 2023
54ef4b9
windows doesn't like opening tempfile twice
andrrizzi Apr 17, 2023
f61ac7f
Merge pull request #46 from luigibonati/multi-task
andrrizzi Apr 17, 2023
b29c67a
Fix bug for single file input in dataset_form_files
EnricoTrizio Apr 18, 2023
d0cb785
Added Muller three states and cortina80 palette
EnricoTrizio Apr 18, 2023
353a823
Merge branch 'lightning' of https://github.com/luigibonati/mlcvs into…
EnricoTrizio Apr 18, 2023
d5a297d
fix regularization init FisherLoss
EnricoTrizio Apr 18, 2023
e7e2c1e
updated intro notebook
luigibonati Apr 18, 2023
1c5531c
updated init to import submodules
luigibonati Apr 18, 2023
f5a7b2f
updated notebooks gitignore
luigibonati Apr 18, 2023
e7892be
rename mlcvs to mlcolvar
luigibonati Apr 18, 2023
e6fe646
rename pytorch_lightning to lightning
luigibonati Apr 18, 2023
4f38604
updated dependencies
luigibonati Apr 18, 2023
041f4e4
renamed import lightning as pl to import lightning
luigibonati Apr 18, 2023
f7f8f35
rename lightning.callbacks to lightning.pytorch.callbacks
luigibonati Apr 18, 2023
88daf7d
rename pl. to lightning.
luigibonati Apr 18, 2023
5d76373
rename lightning.loggers to lightning.pytorch.loggers
luigibonati Apr 18, 2023
cb61a87
Merge pull request #49 from luigibonati/rename
luigibonati Apr 18, 2023
097abf0
mv tda targets to device (@EnricoTrizio)
luigibonati Apr 18, 2023
cc23686
mv weights to device in correlation_matrix
luigibonati Apr 18, 2023
1ca67ee
ignore lightning_logs folder
luigibonati Apr 18, 2023
f12eba4
Merge pull request #50 from luigibonati/fix_device_loss
luigibonati Apr 18, 2023
82bdd3c
rename DictionaryDataset to DictDataset
luigibonati Apr 18, 2023
de640f1
rename FastDictionaryLoader to DictLoader
luigibonati Apr 18, 2023
1ada8fa
rename DictionaryDatamodule to DictModule
luigibonati Apr 18, 2023
568e9d2
updated notebooks
luigibonati Apr 18, 2023
865195f
Merge pull request #51 from luigibonati/data_rename
luigibonati Apr 18, 2023
1bf6316
organized documentation
luigibonati Apr 19, 2023
0975052
Fix #52: MultiTaskCV saves lists of auxiliary losses in ModuleList
andrrizzi Apr 22, 2023
c9b84e1
Merge pull request #53 from luigibonati/multitask
andrrizzi Apr 23, 2023
9193a10
updated docs with description
luigibonati Apr 25, 2023
af672ab
[tica] Fall back to least squares if rank >= in_features (see #54)
luigibonati Apr 26, 2023
abfa989
added test_reduced_rank_tica to CI
luigibonati Apr 26, 2023
a5567fa
updated tutorials
luigibonati Apr 26, 2023
95c32b4
removed tae tutorial
luigibonati Apr 26, 2023
33dd3e6
removed plumed interface from repo
luigibonati Apr 26, 2023
ca41f6e
updated readme and repo files
luigibonati Apr 26, 2023
8f644b3
Merge branch 'main' of github.com:luigibonati/mlcvs into lightning
luigibonati Apr 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mlcvs/_version.py export-subst
mlcolvar/_version.py export-subst
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# How to contribute

We welcome contributions from external contributors, and this document
describes how to merge code changes into this mlcvs.
describes how to merge code changes into this mlcolvar.

## Getting Started

Expand All @@ -19,7 +19,7 @@ describes how to merge code changes into this mlcvs.
[branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/)
with the branch name relating to the feature you are going to add.
* When you are ready for others to examine and comment on your new feature,
navigate to your fork of mlcvs on GitHub and open a [pull
navigate to your fork of mlcolvar on GitHub and open a [pull
request](https://help.github.com/articles/using-pull-requests/) (PR). Note that
after you launch a PR from one of your fork's branches, all
subsequent commits to that branch will be added to the open pull request
Expand All @@ -29,7 +29,7 @@ describes how to merge code changes into this mlcvs.
* If you're providing a new feature, you must add test cases and documentation.
* When the code is ready to go, make sure you run the test suite using pytest.
* When you're ready to be considered for merging, check the "Ready to go"
box on the PR page to let the mlcvs devs know that the changes are complete.
box on the PR page to let the mlcolvar devs know that the changes are complete.
The code will not be merged until this box is checked, the continuous
integration returns checkmarks,
and multiple core developers give "Approved" reviews.
Expand Down
83 changes: 37 additions & 46 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: CI

on:
# GitHub has started calling new repo's first branch "main" https://github.com/github/renaming
# Existing codes likely still have "master" as the primary branch
# Both are tracked here to keep legacy and new codes working
# The cookiecutter uses the "--initial-branch" flag when it runs git-init
push:
branches:
- "master"
- "main"
- "lightning"
pull_request:
branches:
- "master"
- "main"
- "lightning"
schedule:
# Weekly tests run on main by default:
# Scheduled workflows run on the latest commit on the default or base branch.
Expand All @@ -25,52 +24,44 @@ jobs:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a

# More info on options: https://github.com/marketplace/actions/provision-with-micromamba
- uses: mamba-org/provision-with-micromamba@main
with:
environment-file: devtools/conda-envs/test_env.yaml
environment-name: test
channels: conda-forge,defaults
extra-specs: |
python=${{ matrix.python-version }}

# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
- name: Install package
# conda setup requires this special shell
shell: bash -l {0}
run: |
python -m pip install . --no-deps
micromamba list

channels: conda-forge,defaults
- name: Run tests
# conda setup requires this special shell
shell: bash -l {0}
run: |
pytest -v --cov=mlcolvar --cov-report=xml --color=yes mlcolvar/tests/
pytest --nbmake docs/notebooks/ --ignore=docs/notebooks/data/

activate-environment: test
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true

- name: Install package

# conda setup requires this special shell
shell: bash -l {0}
run: |
python -m pip install . --no-deps
conda list


- name: Run tests

# conda setup requires this special shell
shell: bash -l {0}

run: |
pytest -v --cov=mlcvs --cov-report=xml --color=yes mlcvs/tests/

- name: CodeCov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
- name: CodeCov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL"

on:
push:
branches: [ "main" ]
branches: [ "main", "lighting" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "lighting" ]
schedule:
- cron: "33 10 * * 1"

Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,9 @@ ENV/
# There are reports this comes from LLVM profiling, but also Xcode 9.
*profraw

*/_version.py
*/_version.py

old_code/
.vscode/
test_notebooks/
lightning_logs/
2 changes: 1 addition & 1 deletion .lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ path_classifiers:
- versioneer.py # Set Versioneer.py to an external "library" (3rd party code)
- devtools/*
generated:
- mlcvs/_version.py
- mlcolvar/_version.py
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Copyright 2021 Luigi Bonati
Copyright (c) 2023 Luigi Bonati, Enrico Trizio and Andrea Rizzi

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ include LICENSE
include MANIFEST.in
include CODE_OF_CONDUCT.md

graft mlcvs
graft mlcolvar
global-exclude *.py[cod] __pycache__ *.so
30 changes: 18 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
mlcvs: Machine learning collective variables
==============================
mlcolvar: Machine learning collective variables
===============================================
[//]: # (Badges)
![status](https://img.shields.io/badge/status-development-orange)
[![license](https://img.shields.io/github/license/luigibonati/mlcvs)](https://github.com/luigibonati/mlcvs/blob/main/LICENSE)
[![license](https://img.shields.io/github/license/luigibonati/mlcolvar)](https://github.com/luigibonati/mlcolvar/blob/main/LICENSE)

[![Documentation Status](https://readthedocs.org/projects/mlcvs/badge/?version=latest)](https://mlcvs.readthedocs.io/en/latest/?badge=latest)
[![GitHub Actions Build Status](https://github.com/luigibonati/mlcvs/workflows/CI/badge.svg)](https://github.com/luigibonati/mlcvs/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/luigibonati/mlcvs/branch/main/graph/badge.svg?token=H01H68KNNG)](https://codecov.io/gh/luigibonati/mlcvs)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/luigibonati/mlcvs.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/luigibonati/mlcvs/context:python)
[![Documentation Status](https://readthedocs.org/projects/mlcolvar/badge/?version=latest)](https://mlcolvar.readthedocs.io/en/latest/?badge=latest)
[![GitHub Actions Build Status](https://github.com/luigibonati/mlcolvar/workflows/CI/badge.svg)](https://github.com/luigibonati/mlcolvar/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/luigibonati/mlcolvar/branch/main/graph/badge.svg?token=H01H68KNNG)](https://codecov.io/gh/luigibonati/mlcolvar)

### Copyright
`mlcolvar`, short for Machine Learning COLlective VARiables, is a Python library aimed to help design data-driven collective-variables (CVs) for enhanced sampling simulations.
The guiding principles of `mlcolvar` are twofold:

Copyright (c) 2022, Luigi Bonati
1. A unified framework to help test and utilize (some of) the CVs proposed in the literature.
2. A modular interface that simplifies the development of new approaches and the contamination between them.

#### Acknowledgements

Project based on the
The library is built upon the [PyTorch](https://pytorch.org/) ML library as well as the [Lightning](https://lightning.ai/) high-level framework.

The workflow for training CVs is illustrated in the figure below. The resulting CVs can be then deployed for enhancing sampling with the [PLUMED](https://www.plumed.org/) package via the [pytorch](https://www.plumed.org/doc-master/user-doc/html/_p_y_t_o_r_c_h__m_o_d_e_l.html>`_) interface.

<center><img src="docs/notebooks/images/graphical_overview_mlcvs.png" width="800" /></center>


Copyright (c) 2023 Luigi Bonati, Enrico Trizio and Andrea Rizzi. Project based on the
[Computational Molecular Science Python Cookiecutter](https://github.com/molssi/cookiecutter-cms) version 1.6.
2 changes: 1 addition & 1 deletion devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ is installed by looking at the `git` tags and how many commits ahead this versio
\d+.\d+.\d+(?\+\d+-[a-z0-9]+)
```
If the version of this commit is the same as a `git` tag, the installed version is the same as the tag,
e.g. `mlcvs-0.1.2`, otherwise it will be appended with `+X` where `X` is the number of commits
e.g. `mlcolvar-0.1.2`, otherwise it will be appended with `+X` where `X` is the number of commits
ahead from the last tag, and then `-YYYYYY` where the `Y`'s are replaced with the `git` commit hash.
4 changes: 2 additions & 2 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ dependencies:
- numpy
- pandas
- pytorch
- lightning
- matplotlib
- scikit-learn

# Pip-only installs
- pip:
- KDEpy
# - codecov
- nbmake

2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = mlcvs
SPHINXPROJ = mlcolvar
SOURCEDIR = .
BUILDDIR = _build

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Compiling mlcvs's Documentation
# Compiling mlcolvar's Documentation

The docs for this project are built with [Sphinx](http://www.sphinx-doc.org/en/master/).
To compile the docs, first ensure that Sphinx and the ReadTheDocs theme are installed.


```bash
conda install sphinx sphinx_rtd_theme
pip install sphinx-copybutton furo nbsphinx
```


Once installed, you can use the `Makefile` in this directory to compile static HTML pages by
```bash
make html
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/custom-class-template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.. autoclass:: {{ objname }}
:members:
:show-inheritance:
:inherited-members: Module
:inherited-members: Module,LightningModule

{% block methods %}
.. automethod:: __init__
Expand Down
Loading