Code Wizard

Code Wizard

Dataset type
Use case
ML algorithm
Library used to train models
In which form is your dataset available?
                    
                        from sklearn.preprocessing import LabelEncoder
                        from scipy.sparse import issparse
                        from scipy import sparse
                        def sensitivity_logit(X, y, w=None, *, sketch_size=None, use_y=True, class_weight: Dict[Any, float] = None):
                            """
                            Logit sampling from 2018 Paper On Coresets for Logistic Regression.
                            """
                            X = np.concatenate([X, np.ones([X.shape[0], 1])], axis=1)
                            if w is not None:
                                w = _check_sample_weight(w, X, dtype=X.dtype)
                                X, y = w_dot_X(X, y=y, w=w)
                            else:
                                w = _check_sample_weight(w, X, dtype=X.dtype)