repo_name stringlengths 6 67 | path stringlengths 5 185 | copies stringlengths 1 3 | size stringlengths 4 6 | content stringlengths 1.02k 962k | license stringclasses 15
values |
|---|---|---|---|---|---|
rs2/pandas | pandas/tests/extension/test_integer.py | 2 | 7327 | """
This file contains a minimal set of tests for compliance with the extension
array interface test suite, and should contain no other tests.
The test suite for the full functionality of the array is located in
`pandas/tests/arrays/`.
The tests in this file are inherited from the BaseExtensionTests, and only
minimal ... | bsd-3-clause |
scienceopen/transcarread | plasma_state.py | 1 | 1292 | #!/usr/bin/env python
"""
Reads output of Transcar sim, yielding Incoherent Scatter Radar plasma parameters.
python transcar2isr.py tests/data/beam52
"""
from pathlib import Path
from matplotlib.pyplot import show
from argparse import ArgumentParser
from datetime import datetime
#
import transcarread.plots as pl... | gpl-3.0 |
dingocuster/scikit-learn | sklearn/tests/test_learning_curve.py | 225 | 10791 | # Author: Alexander Fabisch <afabisch@informatik.uni-bremen.de>
#
# License: BSD 3 clause
import sys
from sklearn.externals.six.moves import cStringIO as StringIO
import numpy as np
import warnings
from sklearn.base import BaseEstimator
from sklearn.learning_curve import learning_curve, validation_curve
from sklearn.u... | bsd-3-clause |
aolindahl/polarization-monitor | offline_handler.py | 1 | 9272 | # -*- coding: utf-8 -*-
"""
Created on Wed May 27 12:59:34 2015
@author: antlin
"""
import h5py
import numpy as np
import sys
import matplotlib.pyplot as plt
from aolPyModules import cookie_box
import lmfit
photo_roi = [[236.5, 250],
[236.5, 250],
[242.0, 260],
[242.0, 260],
... | gpl-2.0 |
jenfly/python-practice | maps/maps.py | 1 | 2641 | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from datetime import datetime
# Globe with Orthographic projection
# ----------------------------------
# lon_0, lat_0 are the center point of the projection.
# resolution = 'l' means use low resolution coastlines.
lon_0, lat_0... | mit |
agoose77/hivesystem | manual/movingpanda/panda-13.py | 1 | 9853 | import dragonfly
import dragonfly.pandahive
import bee
from bee import connect
import dragonfly.scene.unbound, dragonfly.scene.bound
import dragonfly.std
import dragonfly.io
import dragonfly.canvas
import dragonfly.convert.pull
import dragonfly.logic
import dragonfly.bind
import Spyder
# ## random matrix generator
f... | bsd-2-clause |
TPeterW/Bitcoin-Price-Prediction | data_collection/flip_sheets.py | 1 | 1705 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import pandas as pd
def main():
if len(sys.argv) >= 2:
filenames = sys.argv[1:]
for filename in filenames:
flipfile(filename)
# else:
# files = ["Anoncoin.csv", "Argentum.csv", "BBQCoin.csv", "BetaCoin.csv", "BitB... | mit |
cwu2011/scikit-learn | sklearn/utils/validation.py | 66 | 23629 | """Utilities for input validation"""
# Authors: Olivier Grisel
# Gael Varoquaux
# Andreas Mueller
# Lars Buitinck
# Alexandre Gramfort
# Nicolas Tresegnie
# License: BSD 3 clause
import warnings
import numbers
import numpy as np
import scipy.sparse as sp
from ..externals i... | bsd-3-clause |
dingocuster/scikit-learn | sklearn/semi_supervised/tests/test_label_propagation.py | 307 | 1974 | """ test the label propagation module """
import nose
import numpy as np
from sklearn.semi_supervised import label_propagation
from numpy.testing import assert_array_almost_equal
from numpy.testing import assert_array_equal
ESTIMATORS = [
(label_propagation.LabelPropagation, {'kernel': 'rbf'}),
(label_propa... | bsd-3-clause |
jreback/pandas | pandas/tests/indexing/common.py | 2 | 5245 | """ common utilities """
import itertools
import numpy as np
from pandas import DataFrame, Float64Index, MultiIndex, Series, UInt64Index, date_range
import pandas._testing as tm
def _mklbl(prefix, n):
return [f"{prefix}{i}" for i in range(n)]
def _axify(obj, key, axis):
# create a tuple accessor
axes ... | bsd-3-clause |
mwaskom/seaborn | seaborn/regression.py | 2 | 39418 | """Plotting functions for linear models (broadly construed)."""
import copy
from textwrap import dedent
import warnings
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
try:
import statsmodels
assert statsmodels
_has_statsmodels = True
except ImportError:
... | bsd-3-clause |
JeanKossaifi/scikit-learn | sklearn/datasets/species_distributions.py | 198 | 7923 | """
=============================
Species distribution dataset
=============================
This dataset represents the geographic distribution of species.
The dataset is provided by Phillips et. al. (2006).
The two species are:
- `"Bradypus variegatus"
<http://www.iucnredlist.org/apps/redlist/details/3038/0>`_... | bsd-3-clause |
ronekko/spatial_transformer_network | main.py | 1 | 8637 | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 14 21:17:12 2015
@author: sakurai
"""
import argparse
import time
import copy
import numpy as np
import matplotlib.pyplot as plt
import chainer.functions as F
from chainer import optimizers
from chainer import Variable, FunctionSet
from chainer import cuda
import spatial... | mit |
theonaun/surgeo | tests/app/test_cli.py | 1 | 5819 | import os
import pathlib
import subprocess
import sys
import tempfile
import unittest
import numpy as np
import pandas as pd
import surgeo.app.surgeo_cli
class TestSurgeoCLI(unittest.TestCase):
_CLI_SCRIPT = surgeo.app.surgeo_cli.__file__
_DATA_FOLDER = pathlib.Path(__file__).resolve().parents[1] / 'data'... | mit |
lneuhaus/pyrpl | pyrpl/software_modules/spectrum_analyzer.py | 1 | 29677 | ###############################################################################
# pyrpl - DSP servo controller for quantum optics with the RedPitaya
# Copyright (C) 2014-2016 Leonhard Neuhaus (neuhaus@spectro.jussieu.fr)
#
# This program is free software: you can redistribute it and/or modify
# it under t... | gpl-3.0 |
nicococo/ClusterSvdd | scripts/test_ad_svdd.py | 1 | 7209 | import matplotlib.pyplot as plt
import sklearn.metrics as metrics
import sklearn.datasets as datasets
import numpy as np
from ClusterSVDD.svdd_primal_sgd import SvddPrimalSGD
from ClusterSVDD.svdd_dual_qp import SvddDualQP
from ClusterSVDD.cluster_svdd import ClusterSvdd
def generate_data_uniform(datapoints, cluster... | mit |
michrawson/nyu_ml_lectures | notebooks/figures/plot_rbf_svm_parameters.py | 19 | 2018 | import matplotlib.pyplot as plt
import numpy as np
from sklearn.svm import SVC
from sklearn.datasets import make_blobs
from .plot_2d_separator import plot_2d_separator
def make_handcrafted_dataset():
# a carefully hand-designed dataset lol
X, y = make_blobs(centers=2, random_state=4, n_samples=30)
y[np.ar... | cc0-1.0 |
wzbozon/statsmodels | statsmodels/sandbox/examples/try_multiols.py | 33 | 1243 | # -*- coding: utf-8 -*-
"""
Created on Sun May 26 13:23:40 2013
Author: Josef Perktold, based on Enrico Giampieri's multiOLS
"""
#import numpy as np
import pandas as pd
import statsmodels.api as sm
from statsmodels.sandbox.multilinear import multiOLS, multigroup
data = sm.datasets.longley.load_pandas()
df = data.e... | bsd-3-clause |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6