Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
abess
abess-master/docs/Tutorial/4-computation-tips/plot_large_sample.py
""" Large-Sample Data ================= """ # %% # Introduction # ^^^^^^^^^^^^^^^^^^^^^^^ # # .. image:: ../../Tutorial/figure/large-sample.png # # A large sample size leads to a large range of possible support sizes which adds to the computational burdon. # The computational tip here is to use the golden-section sea...
3,940
33.570175
149
py
abess
abess-master/docs/Tutorial/4-computation-tips/plot_sparse_inputs.py
""" Sparse Inputs ============= We sometimes meet with problems where the :math:`N × p` input matrix :math:`X` is extremely sparse, i.e., many entries in :math:`X` have zero values. A notable example comes from document classification: aiming to assign classes to a document, making it easier to manage for publishers an...
2,632
32.75641
159
py
abess
abess-master/docs/Tutorial/4-computation-tips/plot_specific_models.py
""" Specific Models =============== """ ########################################## # Introduction # ^^^^^^^^^^^^ # From the algorithm preseneted in “`ABESS algorithm: details <https://abess.readthedocs.io/en/latest/auto_gallery/1-glm/plot_a2_abess_algorithm_details.html>`__”, # one of the bottleneck in algorithm is th...
7,337
48.918367
445
py
abess
abess-master/docs/Tutorial/5-scikit-learn-connection/plot_1_scikit_learn.py
""" Work with scikit-learn ====================== """ # %% # ``abess`` is very easy to work with the famous package ``scikit-learn``, and here is an example. # We going to illustrate the integration of the ``abess`` with ``scikit-learn``’s pre-processing and model selection modules to # build a non-linear model for di...
5,954
32.268156
155
py
abess
abess-master/docs/Tutorial/5-scikit-learn-connection/plot_2_geomstats.py
""" Work with geomstats =================== """ # %% # The package `geomstats` is used for computations and statistics on nonlinear manifolds, # such as Hypersphere,Hyperbolic Space, Symmetric-Positive-Definite (SPD) Matrices Space and Skew-Symmetric Matrices Space. # `abess` also works well with the package `geomst...
9,511
43.037037
157
py
abess
abess-master/docs/Tutorial/5-scikit-learn-connection/plot_3_double_machine_learning.py
""" ================================ Work with DoubleML ================================ Double machine learning [1]_ offer a debiased way for estimating low-dimensional parameter of interest in the presence of high-dimensional nuisance. Many machine learning methods can be used to estimate the nuisance parameters, suc...
9,137
46.103093
190
py
abess
abess-master/docs/Tutorial/5-scikit-learn-connection/plot_4_pyts.py
""" ============== Work with pyts ============== ``pyts`` is a Python package dedicated to time series classification. It aims to make time series classification easily accessible by providing preprocessing and utility tools, and implementations of several time series classification algorithms. In this example, we wi...
7,074
37.873626
123
py
abess
abess-master/docs/Tutorial/5-scikit-learn-connection/plot_5_dowhy.py
""" ================================ Work with DoWhy ================================ ``DoWhy`` is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. In this section, we will use ``abess`` to cope with high-dimensional mediation analysis problem, which is a popular ...
15,683
50.762376
320
py
abess
abess-master/docs/Tutorial/5-scikit-learn-connection/plot_6_imbalanced_learn.py
""" =========================== Work with imbalanced-learn =========================== ``Imbalanced-learn`` is an open source, MIT-licensed library relying on scikit-learn and provides tools when dealing with classification with imbalanced classes. In this tutorial, we will show how to combine ``abess.linear.Logistic...
4,974
32.166667
110
py
abess
abess-master/docs/real-data/README.md
## Introduction We compare `abess` and other well-known algorithms under linear regression and logistic regression models on several real-world datasets. The comparison is conducted on both Python and R environments. In what follow, we depict step-by-step instructions for properly using scripts in subdirectories. Not...
1,876
30.283333
299
md
abess
abess-master/docs/real-data/cancer/chin.py
# %% import numpy as np import pandas as pd from time import time from abess.linear import LogisticRegression from sklearn.metrics import roc_auc_score from sklearn.linear_model import LogisticRegressionCV from celer import LogisticRegression as celerLogisticRegressionCV from sklearn.model_selection import train_test_s...
4,440
30.496454
132
py
abess
abess-master/docs/real-data/musk/musk.py
# %% import numpy as np import pandas as pd from time import time from abess.linear import LogisticRegression from sklearn.metrics import roc_auc_score from sklearn.linear_model import LogisticRegressionCV from celer import LogisticRegression as celerLogisticRegressionCV from sklearn.model_selection import train_test_...
5,047
33.108108
132
py
abess
abess-master/docs/real-data/superconductivity/superconduct.py
# %% import numpy as np from time import time from abess.linear import LinearRegression from sklearn.metrics import mean_squared_error from sklearn.linear_model import LassoCV, OrthogonalMatchingPursuitCV from sklearn.preprocessing import PolynomialFeatures, StandardScaler from celer import LassoCV as celerLassoCV from...
4,311
30.940741
88
py
abess
abess-master/docs/simulation/README.md
## Introduction We compare `abess` and other well-known algorithms under linear regression and logistic regression model. The comparison is conducted on both Python and R environments. ## Prerequisite ### Python (version 3.9.1): - abess (0.4.5) - scikit-learn (1.0.2) - numpy ### R (version 3.6.3) - abess (0.4.5)...
1,773
29.586207
216
md
abess
abess-master/docs/simulation/Python/plot_important_search.py
from time import time import numpy as np from sklearn.metrics import roc_auc_score import matplotlib.pyplot as plt from abess.linear import LogisticRegression from abess.datasets import make_glm_data np.random.seed(0) n = 500 p = 2000 k = 20 rho = 0.1 M = 50 search_path = [32, 64, 128, 256, 512, 1024, 2048] met_save...
1,874
24.337838
77
py
abess
abess-master/docs/simulation/Python/plot_results_figure.py
import os import sys import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches # %% run test os.chdir(os.path.dirname(os.path.abspath(__file__))) files = [ 'Lm0.1_res.npy', 'Lm0.7_res.npy', 'Logistic0.1_res.npy', 'Logistic0.7_res.npy', 'Lm0.1_data.npy', 'Lm0.7_dat...
4,966
32.113333
80
py
abess
abess-master/docs/simulation/Python/run_benchmark_linear.py
import sys import warnings from time import time import numpy as np from sklearn.metrics import matthews_corrcoef from sklearn.linear_model import LassoCV from sklearn.linear_model import OrthogonalMatchingPursuitCV # from spams import fistaFlat # from sklearn.model_selection import GridSearchCV # from glmnet import El...
5,137
25.900524
73
py
abess
abess-master/docs/simulation/Python/run_benchmark_logistic.py
import sys from time import time import numpy as np from sklearn.metrics import matthews_corrcoef, roc_auc_score from sklearn.linear_model import LogisticRegressionCV # from glmnet import LogitNet # import statsmodels.api as sm from abess.linear import LogisticRegression from abess.datasets import make_glm_data def m...
3,621
25.82963
75
py
abess
abess-master/include/Spectra/DavidsonSymEigsSolver.h
// Copyright (C) 2020 Netherlands eScience Center <f.zapata@esciencecenter.nl> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DAVIDSON_SYM_EIGS_S...
3,169
33.835165
111
h
abess
abess-master/include/Spectra/GenEigsBase.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_GEN_EIGS_BASE_H #define SPECTRA_GEN_EI...
18,186
33.121951
105
h
abess
abess-master/include/Spectra/GenEigsComplexShiftSolver.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_GEN_EIGS_COMPLEX_SHIFT_SOLVER_H #defin...
6,755
41.225
120
h
abess
abess-master/include/Spectra/GenEigsRealShiftSolver.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_GEN_EIGS_REAL_SHIFT_SOLVER_H #define S...
3,518
39.918605
98
h
abess
abess-master/include/Spectra/GenEigsSolver.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_GEN_EIGS_SOLVER_H #define SPECTRA_GEN_...
5,233
33.893333
96
h
abess
abess-master/include/Spectra/JDSymEigsBase.h
// Copyright (C) 2020 Netherlands eScience Center <J.Wehner@esciencecenter.nl> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_JD_SYM_EIGS_BASE_H ...
6,303
33.26087
110
h
abess
abess-master/include/Spectra/SymEigsBase.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_EIGS_BASE_H #define SPECTRA_SYM_EI...
15,129
32.325991
127
h
abess
abess-master/include/Spectra/SymEigsShiftSolver.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_EIGS_SHIFT_SOLVER_H #define SPECTR...
7,762
37.621891
98
h
abess
abess-master/include/Spectra/SymEigsSolver.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_EIGS_SOLVER_H #define SPECTRA_SYM_...
6,053
35.690909
96
h
abess
abess-master/include/Spectra/SymGEigsShiftSolver.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_SHIFT_SOLVER_H #define SPECT...
21,455
45.241379
109
h
abess
abess-master/include/Spectra/SymGEigsSolver.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_SOLVER_H #define SPECTRA_SYM...
13,190
44.329897
131
h
abess
abess-master/include/Spectra/LinAlg/Arnoldi.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_ARNOLDI_H #define SPECTRA_ARNOLDI_H #...
10,914
33.541139
100
h
abess
abess-master/include/Spectra/LinAlg/BKLDLT.h
// Copyright (C) 2019-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_BK_LDLT_H #define SPECTRA_BK_LDLT_H #...
17,496
31.522305
140
h
abess
abess-master/include/Spectra/LinAlg/DoubleShiftQR.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DOUBLE_SHIFT_QR_H #define SPECTRA_DOUB...
14,768
32.489796
111
h
abess
abess-master/include/Spectra/LinAlg/Lanczos.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_LANCZOS_H #define SPECTRA_LANCZOS_H #...
6,282
35.52907
115
h
abess
abess-master/include/Spectra/LinAlg/Orthogonalization.h
// Copyright (C) 2020 Netherlands eScience Center <f.zapata@esciencecenter.nl> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_ORTHOGONALIZATION_H...
5,705
39.183099
107
h
abess
abess-master/include/Spectra/LinAlg/RitzPairs.h
// Copyright (C) 2020 Netherlands eScience Center <n.renauld@esciencecenter.nl> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_RITZ_PAIRS_H #defi...
4,472
33.145038
102
h
abess
abess-master/include/Spectra/LinAlg/SearchSpace.h
// Copyright (C) 2020 Netherlands eScience Center <n.renauld@esciencecenter.nl> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SEARCH_SPACE_H #de...
3,388
33.938144
97
h
abess
abess-master/include/Spectra/LinAlg/TridiagEigen.h
// The code was adapted from Eigen/src/Eigenvaleus/SelfAdjointEigenSolver.h // // Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2010 Jitse Niesen <jitse@maths.leeds.ac.uk> // Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the term...
7,776
32.666667
98
h
abess
abess-master/include/Spectra/LinAlg/UpperHessenbergEigen.h
// The code was adapted from Eigen/src/Eigenvaleus/EigenSolver.h // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2010,2012 Jitse Niesen <jitse@maths.leeds.ac.uk> // Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mo...
12,450
38.526984
174
h
abess
abess-master/include/Spectra/LinAlg/UpperHessenbergQR.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_UPPER_HESSENBERG_QR_H #define SPECTRA_...
28,001
34.580686
106
h
abess
abess-master/include/Spectra/LinAlg/UpperHessenbergSchur.h
// The code was adapted from Eigen/src/Eigenvaleus/RealSchur.h // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2010,2012 Jitse Niesen <jitse@maths.leeds.ac.uk> // Copyright (C) 2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla /...
13,184
35.123288
127
h
abess
abess-master/include/Spectra/MatOp/DenseCholesky.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DENSE_CHOLESKY_H #define SPECTRA_DENSE...
4,101
31.555556
129
h
abess
abess-master/include/Spectra/MatOp/DenseGenComplexShiftSolve.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DENSE_GEN_COMPLEX_SHIFT_SOLVE_H #defin...
4,034
32.907563
141
h
abess
abess-master/include/Spectra/MatOp/DenseGenMatProd.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DENSE_GEN_MAT_PROD_H #define SPECTRA_D...
3,352
28.672566
131
h
abess
abess-master/include/Spectra/MatOp/DenseGenRealShiftSolve.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DENSE_GEN_REAL_SHIFT_SOLVE_H #define S...
3,358
30.990476
138
h
abess
abess-master/include/Spectra/MatOp/DenseSymMatProd.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DENSE_SYM_MAT_PROD_H #define SPECTRA_D...
3,452
30.972222
131
h
abess
abess-master/include/Spectra/MatOp/DenseSymShiftSolve.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_DENSE_SYM_SHIFT_SOLVE_H #define SPECTR...
3,643
31.828829
134
h
abess
abess-master/include/Spectra/MatOp/SparseCholesky.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_CHOLESKY_H #define SPECTRA_SPAR...
4,334
32.604651
130
h
abess
abess-master/include/Spectra/MatOp/SparseGenComplexShiftSolve.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_GEN_COMPLEX_SHIFT_SOLVE_H #defi...
4,345
33.768
142
h
abess
abess-master/include/Spectra/MatOp/SparseGenMatProd.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_GEN_MAT_PROD_H #define SPECTRA_...
3,470
31.138889
132
h
abess
abess-master/include/Spectra/MatOp/SparseGenRealShiftSolve.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_GEN_REAL_SHIFT_SOLVE_H #define ...
3,706
32.396396
139
h
abess
abess-master/include/Spectra/MatOp/SparseRegularInverse.h
// Copyright (C) 2017-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_REGULAR_INVERSE_H #define SPECT...
4,681
33.426471
136
h
abess
abess-master/include/Spectra/MatOp/SparseSymMatProd.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_SYM_MAT_PROD_H #define SPECTRA_...
3,695
32.908257
132
h
abess
abess-master/include/Spectra/MatOp/SparseSymShiftSolve.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SPARSE_SYM_SHIFT_SOLVE_H #define SPECT...
3,989
33.695652
135
h
abess
abess-master/include/Spectra/MatOp/SymShiftInvert.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_SHIFT_INVERT_H #define SPECTRA_SYM...
10,177
40.373984
131
h
abess
abess-master/include/Spectra/MatOp/internal/ArnoldiOp.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_ARNOLDI_OP_H #define SPECTRA_ARNOLDI_O...
3,901
23.540881
100
h
abess
abess-master/include/Spectra/MatOp/internal/SymGEigsBucklingOp.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_BUCKLING_OP_H #define SPECTR...
2,671
26.833333
79
h
abess
abess-master/include/Spectra/MatOp/internal/SymGEigsCayleyOp.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_CAYLEY_OP_H #define SPECTRA_...
3,163
28.849057
86
h
abess
abess-master/include/Spectra/MatOp/internal/SymGEigsCholeskyOp.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_CHOLESKY_OP_H #define SPECTR...
2,548
27.965909
80
h
abess
abess-master/include/Spectra/MatOp/internal/SymGEigsRegInvOp.h
// Copyright (C) 2017-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_REG_INV_OP_H #define SPECTRA...
2,330
26.423529
79
h
abess
abess-master/include/Spectra/MatOp/internal/SymGEigsShiftInvertOp.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SYM_GEIGS_SHIFT_INVERT_OP_H #define SP...
2,702
27.15625
86
h
abess
abess-master/include/Spectra/Util/CompInfo.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_COMP_INFO_H #define SPECTRA_COMP_INFO_...
1,213
31.810811
85
h
abess
abess-master/include/Spectra/Util/GEigsMode.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_GEIGS_MODE_H #define SPECTRA_GEIGS_MOD...
959
32.103448
88
h
abess
abess-master/include/Spectra/Util/SelectionRule.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SELECTION_RULE_H #define SPECTRA_SELEC...
8,908
28.598007
127
h
abess
abess-master/include/Spectra/Util/SimpleRandom.h
// Copyright (C) 2016-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_SIMPLE_RANDOM_H #define SPECTRA_SIMPLE...
2,841
27.42
70
h
abess
abess-master/include/Spectra/Util/TypeTraits.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_TYPE_TRAITS_H #define SPECTRA_TYPE_TRA...
2,365
22.66
70
h
abess
abess-master/include/Spectra/Util/Version.h
// Copyright (C) 2020-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_VERSION_H #define SPECTRA_VERSION_H #...
556
31.764706
109
h
abess
abess-master/include/Spectra/contrib/LOBPCGSolver.h
// Written by Anna Araslanova // Modified by Yixuan Qiu // License: MIT #ifndef SPECTRA_LOBPCG_SOLVER_H #define SPECTRA_LOBPCG_SOLVER_H #include <functional> #include <map> #include <Eigen/Core> #include <Eigen/SparseCore> #include <Eigen/Eigenvalues> #include <Eigen/SVD> #include <Eigen/SparseCholesky> #include "....
18,661
32.807971
222
h
abess
abess-master/include/Spectra/contrib/PartialSVDSolver.h
// Copyright (C) 2018-2021 Yixuan Qiu <yixuan.qiu@cos.name> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef SPECTRA_PARTIAL_SVD_SOLVER_H #define SPECTRA_P...
5,921
26.933962
145
h
abess
abess-master/python/setup.py
import os import re import sys import distutils import subprocess # import platform from setuptools import Extension, setup, find_packages from setuptools.command.build_ext import build_ext CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) PLAT_TO_CMAKE = { "win32": "Win32", "win-amd64": "x64", "w...
7,986
34.816143
79
py
abess
abess-master/python/abess/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : # @Author : # @Site : # @File : __init__.py __version__ = "0.4.7rc1" __author__ = ("Jin Zhu, Kangkang Jiang, " "Junhao Huang, Yanhang Zhang, " "Yanhang Zhang, Shiyun Lin, " "Junxian Zhu, Xueqin Wang") from .lin...
1,222
22.980392
65
py
abess
abess-master/python/abess/bess_base.py
import numbers import warnings import numpy as np import pandas as pd from scipy.sparse import coo_matrix, csr_matrix from sklearn.base import BaseEstimator from sklearn.utils.validation import check_X_y from sklearn.exceptions import DataConversionWarning from .pybind_cabess import pywrap_GLM from .utilities import ca...
24,190
37.7056
79
py
abess
abess-master/python/abess/datasets.py
import numpy as np def sample(p, k): full = np.arange(p) select = sorted(np.random.choice(full, k, replace=False)) return select def sparse_beta_generator(p, Nonzero, k, M): Tbeta = np.zeros([p, M]) beta_value = beta_generator(k, M) Tbeta[Nonzero, :] = beta_value return Tbeta def beta_...
16,958
34.703158
78
py
abess
abess-master/python/abess/decomposition.py
import numbers import numpy as np from scipy.sparse import coo_matrix, issparse from sklearn.utils.validation import check_array from .pybind_cabess import pywrap_PCA, pywrap_RPCA from .bess_base import bess_base from .utilities import new_data_check class SparsePCA(bess_base): r""" Adaptive Best-Subset Selec...
27,964
34.715198
79
py
abess
abess-master/python/abess/functions.py
# 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 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
26,182
33.67947
83
py
abess
abess-master/python/abess/linear.py
import warnings import numpy as np from sklearn.metrics import r2_score, accuracy_score, ndcg_score from .bess_base import bess_base from .utilities import fix_docs, new_data_check from .functions import (BreslowEstimator, concordance_index_censored) # from .nonparametric import _compute_counts try: from sklearn.me...
54,782
36.166214
79
py
abess
abess-master/python/abess/pca.py
import warnings from .decomposition import SparsePCA, RobustPCA # This is the old API for `abess.decomposition` # and will be removed in version 0.6.0. class abessPCA(SparsePCA): warning_msg = ("Class ``abess.pca.abessPCA`` has been renamed to " "``abess.decomposition.SparsePCA``. " ...
2,313
35.730159
73
py
abess
abess-master/python/abess/utilities.py
import numpy as np from sklearn.utils.validation import check_X_y, check_array, check_is_fitted def fix_docs(cls): """ This function is to inherit the docstring from base class and avoid unnecessary duplications on description. """ title_index = cls.__doc__.find("Parameters\n ----------") m...
3,296
29.813084
76
py
abess
abess-master/python/include/Eigen/src/Cholesky/LDLT.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2011 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2009 Keir Mierle <mierle@gmail.com> // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2011 Timothy E. Holy <tim....
24,254
35.201493
166
h
abess
abess-master/python/include/Eigen/src/Cholesky/LLT.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
17,834
32.336449
138
h
abess
abess-master/python/include/Eigen/src/Cholesky/LLT_LAPACKE.h
/* Copyright (c) 2011, Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
3,974
38.75
113
h
abess
abess-master/python/include/Eigen/src/CholmodSupport/CholmodSupport.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
22,307
33.85625
161
h
abess
abess-master/python/include/Eigen/src/Core/Array.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
12,218
35.804217
145
h
abess
abess-master/python/include/Eigen/src/Core/ArrayBase.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
8,179
35.035242
134
h
abess
abess-master/python/include/Eigen/src/Core/ArrayWrapper.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
6,775
31.266667
97
h
abess
abess-master/python/include/Eigen/src/Core/Assign.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2007 Michael Olbrich <michael.olbrich@gmx.net> // Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is s...
2,720
28.901099
145
h
abess
abess-master/python/include/Eigen/src/Core/AssignEvaluator.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2011-2014 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2011-2012 Jitse Niesen <jitse@maths.leeds.ac.uk> // // This Source Code Form is...
38,120
39.727564
171
h
abess
abess-master/python/include/Eigen/src/Core/Assign_MKL.h
/* Copyright (c) 2011, Intel Corporation. All rights reserved. Copyright (C) 2015 Gael Guennebaud <gael.guennebaud@inria.fr> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain...
12,221
68.050847
158
h
abess
abess-master/python/include/Eigen/src/Core/BandMatrix.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
13,910
38.29661
145
h
abess
abess-master/python/include/Eigen/src/Core/Block.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
18,064
38.878587
161
h
abess
abess-master/python/include/Eigen/src/Core/BooleanRedux.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
4,249
24.757576
113
h
abess
abess-master/python/include/Eigen/src/Core/CommaInitializer.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
5,689
34.341615
122
h
abess
abess-master/python/include/Eigen/src/Core/ConditionEstimator.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2016 Rasmus Munk Larsen (rmlarsen@google.com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obta...
6,970
38.607955
109
h
abess
abess-master/python/include/Eigen/src/Core/CoreEvaluators.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2011-2014 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2011-2012 Jitse Niesen <jitse@maths.leeds.ac.uk> // // This Source Code Form is...
61,293
35.659091
188
h
abess
abess-master/python/include/Eigen/src/Core/CoreIterators.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2014 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
4,525
34.359375
122
h
abess
abess-master/python/include/Eigen/src/Core/CwiseBinaryOp.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2014 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0...
7,593
40.048649
179
h
abess
abess-master/python/include/Eigen/src/Core/CwiseNullaryOp.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
31,424
35.245675
194
h
abess
abess-master/python/include/Eigen/src/Core/CwiseTernaryOp.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2014 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2016 Eugene Brevdo <ebrevdo@gmail.com> // // This Source Code Form is subj...
8,256
40.70202
83
h
abess
abess-master/python/include/Eigen/src/Core/CwiseUnaryOp.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2014 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0...
3,877
36.288462
145
h
abess
abess-master/python/include/Eigen/src/Core/CwiseUnaryView.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
5,282
39.953488
158
h
abess
abess-master/python/include/Eigen/src/Core/DenseBase.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0...
27,420
43.805556
160
h