repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/main.py
#!/usr/bin/env python """ main.py for project-NN-pytorch/projects The training/inference process wrapper. Dataset API is replaced with NII_MergeDataSetLoader. It is more convenient to train model on corpora stored in different directories. Requires model.py and config.py (config_merge_datasets.py) Usage: $: python ...
8,626
36.34632
80
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/config_train_toyset_ID_4.py
#!/usr/bin/env python """ config.py for project-NN-pytorch/projects Usage: For training, change Configuration for training stage For inference, change Configuration for inference stage """ import os import pandas as pd __author__ = "Xin Wang" __email__ = "wangxin@nii.ac.jp" __copyright__ = "Copyright 2022, Xin Wa...
9,125
34.235521
80
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/config_train_toyset_ID_6.py
#!/usr/bin/env python """ config.py for project-NN-pytorch/projects Usage: For training, change Configuration for training stage For inference, change Configuration for inference stage """ import os import pandas as pd __author__ = "Xin Wang" __email__ = "wangxin@nii.ac.jp" __copyright__ = "Copyright 2022, Xin Wa...
9,125
34.235521
80
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/config_train_toyset_ID_7.py
#!/usr/bin/env python """ config.py for project-NN-pytorch/projects Usage: For training, change Configuration for training stage For inference, change Configuration for inference stage """ import os import pandas as pd __author__ = "Xin Wang" __email__ = "wangxin@nii.ac.jp" __copyright__ = "Copyright 2022, Xin Wa...
9,124
34.23166
80
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/config_auto.py
#!/usr/bin/env python """ config.py This configuration file will read environment variables for configuration. it is used for scoring It assumes that input data will be waveform files (*.wav) No need to change settings here """ import os __author__ = "Xin Wang" __email__ = "wangxin@nii.ac.jp" __copyright__ = "Copyr...
2,644
26.268041
75
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-2/model.py
#!/usr/bin/env python """ model.py Self defined model definition. Usage: """ from __future__ import absolute_import from __future__ import print_function import sys import numpy as np import torch import torch.nn as torch_nn import torch.nn.functional as torch_nn_func import sandbox.block_nn as nii_nn import sandb...
18,097
33.018797
79
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-2/data_augment.py
#!/usr/bin/env python """Functions for data augmentation These functions are written using Numpy. They should be used before data are casted into torch.tensor. For example, use them in config.py:input_trans_fns or output_trans_fns """ import os import sys import numpy as np from core_scripts.other_tools import deb...
1,311
29.511628
72
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-6/model.py
#!/usr/bin/env python """ model.py Self defined model definition. Usage: """ from __future__ import absolute_import from __future__ import print_function import sys import numpy as np import torch import torch.nn as torch_nn import torch.nn.functional as torch_nn_func import sandbox.block_nn as nii_nn import sandb...
18,709
33.142336
79
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-6/data_augment.py
#!/usr/bin/env python """Functions for data augmentation These functions are written using Numpy. They should be used before data are casted into torch.tensor. For example, use them in config.py:input_trans_fns or output_trans_fns """ import os import sys import numpy as np from core_scripts.other_tools import deb...
4,445
31.452555
78
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-4/model.py
#!/usr/bin/env python """ model.py Self defined model definition. Usage: """ from __future__ import absolute_import from __future__ import print_function import sys import numpy as np import torch import torch.nn as torch_nn import torch.nn.functional as torch_nn_func import sandbox.block_nn as nii_nn import sandb...
18,709
33.142336
79
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-4/data_augment.py
#!/usr/bin/env python """Functions for data augmentation These functions are written using Numpy. They should be used before data are casted into torch.tensor. For example, use them in config.py:input_trans_fns or output_trans_fns """ import os import sys import numpy as np from core_scripts.other_tools import deb...
4,445
31.452555
78
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-7/model.py
#!/usr/bin/env python """ model.py Self defined model definition. Usage: """ from __future__ import absolute_import from __future__ import print_function import sys import numpy as np import torch import torch.nn as torch_nn import torch.nn.functional as torch_nn_func import sandbox.block_nn as nii_nn import sandb...
18,709
33.142336
79
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/project/09-asvspoof-vocoded-trn/model-ID-7/data_augment.py
#!/usr/bin/env python """Functions for data augmentation These functions are written using Numpy. They should be used before data are casted into torch.tensor. For example, use them in config.py:input_trans_fns or output_trans_fns """ import os import sys import numpy as np from core_scripts.other_tools import deb...
4,445
31.452555
78
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/core_modules/a_softmax.py
#!/usr/bin/env python """ a_softmax layers copied from https://github.com/Joyako/SphereFace-pytorch """ from __future__ import print_function from collections import OrderedDict import numpy as np import torch import torch.nn as torch_nn import torch.nn.functional as torch_f from torch.nn import Parameter __autho...
5,663
30.120879
75
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/core_modules/p2sgrad.py
#!/usr/bin/env python """ P2sGrad: Zhang, X. et al. P2sgrad: Refined gradients for optimizing deep face models. in Proc. CVPR 9906-9914, 2019 I think the grad defined in Eq.(11) is equivalent to define a MSE loss with 0 or 1 as target: \mathcal{L}_i = \sum_{j=1}^{K} (\cos\theta_{i,j} - \delta(j == y_i))^2 The dif...
3,964
27.52518
77
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/core_modules/am_softmax.py
#!/usr/bin/env python """ additive margin softmax layers Wang, F., Cheng, J., Liu, W. & Liu, H. Additive margin softmax for face verification. IEEE Signal Process. Lett. 2018 """ from __future__ import print_function from collections import OrderedDict import numpy as np import torch import torch.nn as torch_nn im...
4,893
28.305389
78
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/core_modules/grad_rev.py
#!/usr/bin/env python """ grad_rev.py Definition of gradient reverse layer Copied from https://cyberagent.ai/blog/research/11863/ """ from __future__ import absolute_import from __future__ import print_function import sys import torch import torch.nn as torch_nn import torch.nn.functional as torch_nn_func __author_...
1,078
22.977778
60
py
project-NN-Pytorch-scripts
project-NN-Pytorch-scripts-master/core_modules/oc_softmax.py
#!/usr/bin/env python """ one class One-class learning towards generalized voice spoofing detection Zhang, You and Jiang, Fei and Duan, Zhiyao arXiv preprint arXiv:2010.13995 """ from __future__ import print_function from collections import OrderedDict import numpy as np import torch import torch.nn as torch_nn impo...
3,886
28.007463
76
py
matscipy
matscipy-master/discover_version.py
# # Copyright 2022 Lars Pastewka # # ### MIT license # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
3,204
32.736842
82
py
matscipy
matscipy-master/maintenance/copyright.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
3,148
31.132653
76
py
matscipy
matscipy-master/maintenance/replace_header.py
# # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # ...
1,124
31.142857
71
py
matscipy
matscipy-master/matscipy/hessian_finite_differences.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2018, 2020 Jan Griesser (U. Freiburg) # 2014, 2020 James Kermode (Warwick U.) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/...
1,542
30.489796
79
py
matscipy
matscipy-master/matscipy/precon.py
"""Hessian preconditioner.""" import numpy as np from ase.optimize.precon import Precon from ase.calculators.calculator import equal class HessianPrecon(Precon): """Preconditioner for dense Hessian.""" def __init__(self, c_stab=0.01, move_tol=0.1, P=None, ...
1,429
27.6
75
py
matscipy
matscipy-master/matscipy/socketcalc.py
# # Copyright 2015-2016, 2020 James Kermode (Warwick U.) # 2019 James Brixey (Warwick U.) # 2016 Henry Lambert (King's College London) # 2015 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program...
41,228
39.861249
290
py
matscipy
matscipy-master/matscipy/atomic_strain.py
# # Copyright 2014, 2020 Lars Pastewka (U. Freiburg) # 2015, 2017 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General ...
6,118
29.748744
82
py
matscipy
matscipy-master/matscipy/molecules.py
# # Copyright 2022 Lucas Frérot (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
6,141
36.224242
76
py
matscipy
matscipy-master/matscipy/spatial_correlation_function.py
# # Copyright 2016, 2021 Lars Pastewka (U. Freiburg) # 2016, 2018 Richard Jana (KIT & U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Ge...
8,104
37.966346
72
py
matscipy
matscipy-master/matscipy/deformation.py
# # Copyright 2017 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
4,220
30.266667
78
py
matscipy
matscipy-master/matscipy/visualise.py
# # Copyright 2014-2015 James Kermode (Warwick U.) # 2014-2015 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
3,388
32.22549
82
py
matscipy
matscipy-master/matscipy/dislocation.py
# # Copyright 2019, 2021 Lars Pastewka (U. Freiburg) # 2018-2023 Petr Grigorev (Warwick U.) # 2020 James Kermode (Warwick U.) # 2019 Arnaud Allera (U. Lyon 1) # 2019 Wolfram G. Nöhring (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github...
110,569
34.644745
120
py
matscipy
matscipy-master/matscipy/rings.py
# # Copyright 2014-2015 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
1,893
29.548387
76
py
matscipy
matscipy-master/matscipy/logger.py
# # Copyright 2015-2017, 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Sof...
6,687
25.967742
76
py
matscipy
matscipy-master/matscipy/pressurecoupling.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2020, 2022, 2023 Thomas Reichenbach (Fraunhofer IWM) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
14,605
32.120181
79
py
matscipy
matscipy-master/matscipy/surface.py
# # Copyright 2014, 2020 James Kermode (Warwick U.) # 2019 James Brixey (Warwick U.) # 2015 Punit Patel (Warwick U.) # 2014 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software:...
8,658
29.489437
114
py
matscipy
matscipy-master/matscipy/ffi.py
# # Copyright 2022 Lucas Frérot (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
1,444
33.404762
80
py
matscipy
matscipy-master/matscipy/numerical.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2018, 2020 Jan Griesser (U. Freiburg) # 2014, 2020 James Kermode (Warwick U.) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/...
8,113
28.292419
95
py
matscipy
matscipy-master/matscipy/angle_distribution.py
# # Copyright 2014-2015 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
1,426
32.186047
78
py
matscipy
matscipy-master/matscipy/numpy_tricks.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
2,266
32.338235
93
py
matscipy
matscipy-master/matscipy/__init__.py
# # Copyright 2015, 2017 Lars Pastewka (U. Freiburg) # 2015 Till Junge (EPFL) # 2014-2015 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it u...
2,247
25.761905
72
py
matscipy
matscipy-master/matscipy/hydrogenate.py
# # Copyright 2015 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
3,594
30.814159
77
py
matscipy
matscipy-master/matscipy/distributed_computation.py
# # Copyright 2015 James Kermode (Warwick U.) # 2015 Till Junge (EPFL) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
10,625
34.657718
86
py
matscipy
matscipy-master/matscipy/neighbours.py
# # Copyright 2014-2015, 2017-2019, 2021 Lars Pastewka (U. Freiburg) # 2020 Jonas Oldenstaedt (U. Freiburg) # 2020 Wolfram G. Nöhring (U. Freiburg) # 2019 Jan Griesser (U. Freiburg) # 2015 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale...
35,932
37.104984
117
py
matscipy
matscipy-master/matscipy/elasticity.py
# # Copyright 2014-2015, 2020-2021 Lars Pastewka (U. Freiburg) # 2021 Jan Griesser (U. Freiburg) # 2021 Petr Grigorev (Warwick U.) # 2014-2015, 2020 James Kermode (Warwick U.) # 2015 Manuel Aldegunde # # matscipy - Materials science with Python at the atomic-scale # https://githu...
45,227
34.584579
136
py
matscipy
matscipy-master/matscipy/opls.py
# # Copyright 2016-2017, 2023 Andreas Klemenz (Fraunhofer IWM) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fre...
28,475
35.743226
79
py
matscipy
matscipy-master/matscipy/drift.py
# # Copyright 2017 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
2,109
30.029412
77
py
matscipy
matscipy-master/matscipy/cli/__init__.py
# ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2020) Johannes Hörmann, University of Freiburg # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
926
47.789474
72
py
matscipy
matscipy-master/matscipy/cli/electrochemistry/c2d.py
#!/usr/bin/env python3 # PYTHON_ARGCOMPLETE_OK # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2019) Johannes Hoermann, University of Freiburg # # This program is free software: you can redistribut...
12,367
38.514377
100
py
matscipy
matscipy-master/matscipy/cli/electrochemistry/pnp.py
#!/usr/bin/env python3 # PYTHON_ARGCOMPLETE_OK # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2019) Johannes Hoermann, University of Freiburg # # This program is free software: you can redistribut...
10,487
38.577358
91
py
matscipy
matscipy-master/matscipy/cli/electrochemistry/__init__.py
# ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2020) Johannes Hörmann, University of Freiburg # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
926
47.789474
72
py
matscipy
matscipy-master/matscipy/cli/electrochemistry/stericify.py
#!/usr/bin/env python3 # PYTHON_ARGCOMPLETE_OK # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2019) Johannes Hoermann, University of Freiburg # # This program is free software: you can redistribut...
15,150
38.048969
112
py
matscipy
matscipy-master/matscipy/fracture_mechanics/crackpathsel.py
# # Copyright 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
2,974
27.605769
100
py
matscipy
matscipy-master/matscipy/fracture_mechanics/crack.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2014-2016, 2018, 2020-2021 James Kermode (Warwick U.) # 2015-2017 Punit Patel (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you ...
77,061
34.091985
119
py
matscipy
matscipy-master/matscipy/fracture_mechanics/clusters.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2014-2015, 2020 James Kermode (Warwick U.) # 2020 Petr Grigorev (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribu...
4,414
32.195489
88
py
matscipy
matscipy-master/matscipy/fracture_mechanics/__init__.py
""" Calculation of continuum linear elastic displacement fields near crack tips, including support for anisotropy in the elastic response. """
143
27.8
76
py
matscipy
matscipy-master/matscipy/fracture_mechanics/idealbrittlesolid.py
# # Copyright 2015, 2017, 2020-2021 Lars Pastewka (U. Freiburg) # 2014-2015, 2017-2018 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the term...
12,355
32.215054
116
py
matscipy
matscipy-master/matscipy/fracture_mechanics/energy_release.py
# # Copyright 2014-2015, 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Sof...
3,951
32.210084
79
py
matscipy
matscipy-master/matscipy/io/lammpsdata.py
# # Copyright 2022 Lucas Frérot (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
11,364
32.724036
78
py
matscipy
matscipy-master/matscipy/io/metis.py
# # Copyright 2014-2016, 2021 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General P...
1,511
28.076923
71
py
matscipy
matscipy-master/matscipy/io/__init__.py
# # Copyright 2014-2016, 2021 Lars Pastewka (U. Freiburg) # 2015-2016 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify #...
948
38.541667
71
py
matscipy
matscipy-master/matscipy/io/tbl.py
# # Copyright 2014-2017, 2021 Lars Pastewka (U. Freiburg) # 2015 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General P...
4,171
31.850394
95
py
matscipy
matscipy-master/matscipy/io/opls.py
# # Copyright 2016-2017, 2020 Andreas Klemenz (Fraunhofer IWM) # 2020 Thomas Reichenbach (Fraunhofer IWM) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the...
30,688
36.06401
146
py
matscipy
matscipy-master/matscipy/calculators/supercell_calculator.py
# # Copyright 2017 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
1,783
30.298246
71
py
matscipy
matscipy-master/matscipy/calculators/fitting.py
# # Copyright 2015, 2021 Lars Pastewka (U. Freiburg) # 2015-2016 Adrien Gola (KIT) # 2015 gola@cmsserv.iam-cms.kit.edu # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it...
43,316
31.915653
152
py
matscipy
matscipy-master/matscipy/calculators/__init__.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2018-2021 Jan Griesser (U. Freiburg) # 2020 Jonas Oldenstaedt (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://gith...
1,308
33.447368
71
py
matscipy
matscipy-master/matscipy/calculators/calculator.py
# # Copyright 2021 Jan Griesser (U. Freiburg) # 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
14,926
34.796163
228
py
matscipy
matscipy-master/matscipy/calculators/pair_potential/__init__.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2018-2019 Jan Griesser (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free...
1,060
41.44
124
py
matscipy
matscipy-master/matscipy/calculators/pair_potential/calculator.py
# # Copyright 2018-2019, 2021 Jan Griesser (U. Freiburg) # 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General P...
15,872
29.349904
117
py
matscipy
matscipy-master/matscipy/calculators/ewald/__init__.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2018-2019 Jan Griesser (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free...
965
37.64
71
py
matscipy
matscipy-master/matscipy/calculators/ewald/calculator.py
# # Copyright 2021 Jan Griesser (U. Freiburg) # 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
22,564
29.742507
93
py
matscipy
matscipy-master/matscipy/calculators/polydisperse/__init__.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2018-2020 Jan Griesser (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free...
998
38.96
71
py
matscipy
matscipy-master/matscipy/calculators/polydisperse/calculator.py
# # Copyright 2020-2021 Jan Griesser (U. Freiburg) # 2020 griesserj@fp-10-126-132-144.eduroam-fp.privat # 2020 Arnaud Allera (U. Lyon 1) # 2014 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https:/...
10,746
32.689655
145
py
matscipy
matscipy-master/matscipy/calculators/committee/utils.py
import numpy as np import ase.io def subsample(samples, output_files, num_subsets, num_subset_samples, keep_isolated_atoms=True): """ Draw sub-samples (without replacement) from given configurations and write to files. Parameter: ---------- samples: list(Atoms) List of configurations to d...
3,554
39.862069
133
py
matscipy
matscipy-master/matscipy/calculators/committee/log.py
import os import logging def create_logger(name, level='warning', log_file=None): """ Create a logger with defined level, and some nice formatter and handler. Parameter: ---------- name: str Name of the logger. level: str, optional default='warning' The sensitivity level of b...
1,924
28.166667
92
py
matscipy
matscipy-master/matscipy/calculators/committee/__init__.py
"""Implements the Committee (of Models) approach.""" from .committee import CommitteeUncertainty, Committee, CommitteeMember from .log import set_logging from .utils import subsample
184
29.833333
71
py
matscipy
matscipy-master/matscipy/calculators/committee/committee.py
import warnings import logging from pathlib import Path from collections import Counter import numpy as np import ase.io from ase.calculators.calculator import Calculator, all_changes logger = logging.getLogger('matscipy.calculators.committee') class CommitteeUncertainty(Calculator): """ Calculator for a c...
17,234
36.386117
126
py
matscipy
matscipy-master/matscipy/calculators/manybody/newmb.py
"""Manybody calculator definition.""" import numpy as np from abc import ABC, abstractmethod from collections import defaultdict from itertools import combinations_with_replacement from typing import Mapping from scipy.sparse import bsr_matrix from ...calculators.calculator import MatscipyCalculator from ...neighbour...
23,461
33.101744
101
py
matscipy
matscipy-master/matscipy/calculators/manybody/potentials.py
# # Copyright 2022 Lucas Frérot (U. Freiburg) # 2022 Jan Griesser (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
48,728
35.015521
152
py
matscipy
matscipy-master/matscipy/calculators/manybody/__init__.py
# # Copyright 2014-2015, 2017, 2020-2021 Lars Pastewka (U. Freiburg) # 2018-2021 Jan Griesser (U. Freiburg) # 2020 Jonas Oldenstaedt (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https:/...
1,091
39.444444
71
py
matscipy
matscipy-master/matscipy/calculators/manybody/calculator.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2021 Jan Griesser (U. Freiburg) # 2020-2021 Jonas Oldenstaedt (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modif...
29,894
36.746212
117
py
matscipy
matscipy-master/matscipy/calculators/manybody/explicit_forms/harmonic.py
# # Copyright 2022 Lucas Frérot (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
14,226
42.243161
468
py
matscipy
matscipy-master/matscipy/calculators/manybody/explicit_forms/kumagai.py
# # Copyright 2021 Jan Griesser (U. Freiburg) # 2021 Lars Pastewka (U. Freiburg) # 2021 griesserj@griesserjs-MacBook-Pro.local # 2020-2021 Jonas Oldenstaedt (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This progra...
10,028
39.934694
143
py
matscipy
matscipy-master/matscipy/calculators/manybody/explicit_forms/tersoff_brenner.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2021 Jan Griesser (U. Freiburg) # 2021 griesserj@griesserjs-MacBook-Pro.local # 2020 Jonas Oldenstaedt (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is ...
26,429
43.345638
169
py
matscipy
matscipy-master/matscipy/calculators/manybody/explicit_forms/__init__.py
# # Copyright 2014-2015, 2017, 2020-2021 Lars Pastewka (U. Freiburg) # 2018-2021 Jan Griesser (U. Freiburg) # 2020 Jonas Oldenstaedt (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https:/...
1,181
39.758621
72
py
matscipy
matscipy-master/matscipy/calculators/manybody/explicit_forms/stillinger_weber.py
# # Copyright 2021 Jan Griesser (U. Freiburg) # 2021 Lars Pastewka (U. Freiburg) # 2021 griesserj@griesserjs-MacBook-Pro.local # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or mod...
8,961
37.796537
139
py
matscipy
matscipy-master/matscipy/calculators/mcfm/qm_cluster.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
4,297
38.796296
89
py
matscipy
matscipy-master/matscipy/calculators/mcfm/__init__.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
955
38.833333
71
py
matscipy
matscipy-master/matscipy/calculators/mcfm/cluster_data.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
1,913
32.578947
91
py
matscipy
matscipy-master/matscipy/calculators/mcfm/calculator.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
29,044
39.509066
107
py
matscipy
matscipy-master/matscipy/calculators/mcfm/mcfm_parallel/mcfm_parallel_control.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
4,636
36.096
99
py
matscipy
matscipy-master/matscipy/calculators/mcfm/mcfm_parallel/__init__.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
863
38.272727
71
py
matscipy
matscipy-master/matscipy/calculators/mcfm/mcfm_parallel/mcfm_parallel_worker.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
4,424
35.570248
90
py
matscipy
matscipy-master/matscipy/calculators/mcfm/neighbour_list_mcfm/neighbour_list_base.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
1,886
28.030769
71
py
matscipy
matscipy-master/matscipy/calculators/mcfm/neighbour_list_mcfm/__init__.py
0
0
0
py
matscipy
matscipy-master/matscipy/calculators/mcfm/neighbour_list_mcfm/neighbour_list_mcfm.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 golebiowski.j@gmail.com # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or m...
5,247
31.196319
84
py
matscipy
matscipy-master/matscipy/calculators/mcfm/qm_cluster_tools/qm_clustering_tool.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
21,592
42.0998
106
py
matscipy
matscipy-master/matscipy/calculators/mcfm/qm_cluster_tools/qm_flagging_tool.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
11,970
36.409375
107
py
matscipy
matscipy-master/matscipy/calculators/mcfm/qm_cluster_tools/__init__.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
864
36.608696
71
py
matscipy
matscipy-master/matscipy/calculators/mcfm/qm_cluster_tools/base_qm_cluster_tool.py
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2018 Jacek Golebiowski (Imperial College London) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gen...
3,112
31.092784
76
py
matscipy
matscipy-master/matscipy/calculators/eam/__init__.py
# # Copyright 2014-2015, 2017, 2021 Lars Pastewka (U. Freiburg) # 2020 Wolfram G. Nöhring (U. Freiburg) # 2015 Adrien Gola (KIT) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is fre...
1,095
38.142857
71
py
matscipy
matscipy-master/matscipy/calculators/eam/io.py
# # Copyright 2015, 2021 Lars Pastewka (U. Freiburg) # 2019-2020 Wolfram G. Nöhring (U. Freiburg) # 2015 Adrien Gola (KIT) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify ...
28,065
44.194847
169
py