repo_name
string
path
string
copies
string
size
string
content
string
license
string
googleinterns/compatible-product
dataset.py
1
37726
import tensorflow as tf import pathlib import os import matplotlib.pyplot as plt import pandas as pd import numpy as np import json import compatible_product_pb2 as compatible_product import tensorflow_addons as tfa import time import hnswlib from sklearn.metrics import roc_auc_score, roc_curve def read_files(): "...
apache-2.0
dialounke/pylayers
pylayers/gui/editor.py
1
51243
# -*- coding: utf-8 -*- """ Qt Standalone Layout editor .. automodule:: :members: """ import sys, os, random if 'QT_API' in os.environ: if os.environ['QT_API'] != 'pyqt': saveQTAPI = os.environ['QT_API'] os.environ['QT_API'] = 'pyqt' else: saveQTAPI = '' os.environ['QT_API'] = 'pyq...
mit
psychopy/versions
psychopy/hardware/crs/bits.py
1
228404
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2020 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). # Acknowledgements: # This code was mostly written by Jon Peirce. # with substaintia...
gpl-3.0
buguen/pylayers
pylayers/antprop/coverage.py
1
35697
""" Class Coverage ============== .. autosummary:: :toctree: generated/ Coverage.creategrid Coverage.cover Coverage.sinr Coverage.best Coverage.show """ from pylayers.util.project import * #from pylayers.measures.mesuwb import * from pylayers.simul.radionode import * import pylayers.util.pyu...
lgpl-3.0
winklerand/pandas
pandas/tests/reshape/test_pivot.py
1
71502
from datetime import datetime, date, timedelta import pytest import numpy as np from collections import OrderedDict import pandas as pd from pandas import (DataFrame, Series, Index, MultiIndex, Grouper, date_range, concat) from pandas.core.reshape.pivot import pivot_table, crosstab from pandas....
bsd-3-clause
florian-f/sklearn
sklearn/svm/classes.py
1
31485
from .base import BaseLibLinear, BaseSVC, BaseLibSVM from ..base import RegressorMixin from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin from ..feature_selection.selector_mixin import SelectorMixin class LinearSVC(BaseLibLinear, LinearClassifierMixin, SelectorMixin, SparseCoefMixi...
bsd-3-clause
nanophotonics/nplab
nplab/analysis/NPoM_DF_Analysis/Condense_DF_Spectra.py
1
42713
# -*- coding: utf-8 -*- """ Created on Fri Aug 31 17:45:06 2018 Last updated 2020-09-03 @author: car72 Condenses particle tracking output file into summary file. Uses functions from Analyse_Z_Scan code (Jack Griffiths). Output (summary) is directly compatible with Igor (Bart de Nijs) and Python (Charlie Readman) DF mu...
gpl-3.0
CompPhysics/MachineLearning
doc/src/LectureNotes/_build/jupyter_execute/chapter10.py
1
103230
# Recurrent Neural Networks [Overview video](https://www.youtube.com/watch?v=SEnXr6v2ifU&ab_channel=AlexanderAmini). See also lecture on Thursday October 22 and examples from [week 42](https://compphysics.github.io/MachineLearning/doc/pub/week42/html/week42.html). [IN5400 at UiO Lecture](https://www.uio.no/studier/em...
cc0-1.0
datapythonista/pandas
pandas/tests/frame/methods/test_replace.py
1
53863
from datetime import datetime from io import StringIO import re from typing import ( Dict, List, Union, ) import numpy as np import pytest from pandas.compat import np_version_under1p20 import pandas as pd from pandas import ( DataFrame, Index, Series, Timestamp, date_range, ) import ...
bsd-3-clause
AustereCuriosity/astropy
astropy/visualization/wcsaxes/coordinate_helpers.py
1
30590
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import print_function, division, absolute_import """ This file defines the classes used to represent a 'coordinate', which includes axes, ticks, tick labels, and grid lines. """ import numpy as np from matplotlib.ticker import Formatter...
bsd-3-clause
louispotok/pandas
pandas/tests/test_multilevel.py
1
107731
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101,W0141 from warnings import catch_warnings import datetime import itertools import pytest import pytz from numpy.random import randn import numpy as np from pandas.core.index import Index, MultiIndex from pandas import Panel, DataFrame, Series, notna, isna, Tim...
bsd-3-clause
dshean/pygeotools
pygeotools/lib/malib.py
1
79946
#! /usr/bin/env python """ Functions involving masked arrays Some functions are general array operations, others involve geospatial information """ import sys import os import glob import numpy as np from osgeo import gdal from pygeotools.lib import iolib #Notes on geoma #Note: Need better init overloading #http:...
mit
sigma-random/numpy
numpy/core/tests/test_multiarray.py
1
196817
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import os import shutil import warnings import operator import io if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal import numpy as np fro...
bsd-3-clause
rs2/pandas
pandas/tests/reshape/merge/test_merge_asof.py
1
45659
import datetime import numpy as np import pytest import pytz import pandas as pd from pandas import Timedelta, merge_asof, read_csv, to_datetime import pandas._testing as tm from pandas.core.reshape.merge import MergeError class TestAsOfMerge: def read_data(self, datapath, name, dedupe=False): path = da...
bsd-3-clause
jseabold/statsmodels
statsmodels/tsa/ar_model.py
1
64241
# -*- coding: utf-8 -*- from statsmodels.compat.pandas import Appender, Substitution, to_numpy from collections.abc import Iterable import datetime as dt from types import SimpleNamespace import warnings import numpy as np import pandas as pd from scipy.stats import gaussian_kde, norm from statsmodels.tsa.base.predi...
bsd-3-clause
AdityaSoni19031997/Machine-Learning
kaggle/ieee_fraud_detection/temp_preprocessing_and_fes.py
1
109921
# coding: utf-8 import gc import matplotlib.pyplot as plt import seaborn as sns import numpy as np import pandas as pd import time from datetime import datetime, timedelta from collections import deque, defaultdict from itertools import islice from tqdm import tqdm as tqdm from contextlib import contextmanager @cont...
mit
nmartensen/pandas
pandas/tests/io/test_pytables.py
1
216592
import pytest import sys import os import tempfile from contextlib import contextmanager from warnings import catch_warnings import datetime from datetime import timedelta import numpy as np import pandas import pandas as pd from pandas import (Series, DataFrame, Panel, Panel4D, MultiIndex, Int64Index, ...
bsd-3-clause
JasonKessler/scattertext
scattertext/test/test_termDocMatrixFromPandas.py
1
49161
from unittest import TestCase import pandas as pd from scattertext import TermDocMatrixFromPandas from scattertext.CorpusFromPandas import CorpusFromPandas from scattertext.TermDocMatrix import TermDocMatrix from scattertext.WhitespaceNLP import whitespace_nlp from scattertext.test.test_termDocMatrixFactory import ge...
apache-2.0
DStauffman/dstauffman
dstauffman/plotting/generic.py
1
62547
r""" Defines low-level plotting routines meant to be wrapped in higher level ones. Notes ----- #. Written by David C. Stauffer in May 2020. """ #%% Imports import doctest from functools import partial import logging import unittest import warnings from dstauffman import convert_date, DEGREE_SIGN, get_unit_conversio...
lgpl-3.0
SaschaSchweitzer/persons
persons/persons.py
1
70920
# Copyright 2017 Sascha Schweitzer # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in...
apache-2.0
maxlikely/scikit-learn
sklearn/ensemble/gradient_boosting.py
1
40604
"""Gradient Boosted Regression Trees This module contains methods for fitting gradient boosted regression trees for both classification and regression. The module structure is the following: - The ``BaseGradientBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regressio...
bsd-3-clause
lcdb/lcdblib
lcdblib/plotting/results_table.py
1
43742
from textwrap import dedent import numpy as np import pandas import matplotlib from matplotlib import pyplot as plt import matplotlib.patches as patches from mpl_toolkits.axes_grid1 import make_axes_locatable from matplotlib.transforms import blended_transform_factory from matplotlib.ticker import MaxNLocator from matp...
mit
carolFrohlich/nipype
nipype/algorithms/misc.py
2
48574
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ''' Miscellaneous algorithms Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname(os.path.realpath(__file__)) >>> dat...
bsd-3-clause
ganong123/HARK
ConsumptionSaving/ConsPrefShockModel.py
1
31372
''' Extensions to ConsIndShockModel concerning models with preference shocks. It currently only two models: 1) An extension of ConsIndShock, but with an iid lognormal multiplicative shock each period. 2) A combination of (1) and ConsKinkedR, demonstrating how to construct a new model by inheriting from multiple cla...
apache-2.0
kevin-intel/scikit-learn
sklearn/model_selection/tests/test_split.py
2
68926
"""Test the split module""" import warnings import pytest import re import numpy as np from scipy.sparse import coo_matrix, csc_matrix, csr_matrix from scipy import stats from scipy.special import comb from itertools import combinations from itertools import combinations_with_replacement from itertools import permutati...
bsd-3-clause
irmen/synthesizer
examples/keyboard_gui.py
1
48931
""" GUI For the synthesizer components, including a piano keyboard. Implements a set of LFOs with all of their parameters, a set of ADSR envelope filters, and a few other output filters such as tremolo and echo. You can play simple notes, chords, or let an arpeggiator run the notes. Written by Irmen de Jong (irmen@raz...
lgpl-3.0
lilleswing/deepchem
deepchem/models/tests/test_reload.py
1
33645
""" Test reload for trained models. """ import os import pytest import unittest import tempfile import numpy as np import deepchem as dc import tensorflow as tf import scipy from flaky import flaky from sklearn.ensemble import RandomForestClassifier from deepchem.molnet.load_function.chembl25_datasets import CHEMBL25_T...
mit
WmHHooper/aima-python
submissions/Carei/myKMeans.py
1
91899
#braden carei import numpy as np import matplotlib.pyplot as plt from sklearn import metrics from sklearn.cluster import KMeans from sklearn.datasets import load_digits from sklearn.decomposition import PCA from sklearn.preprocessing import scale from sklearn import datasets from sklearn.decomposition import PCA diab...
mit
dstndstn/unwise-coadds
check-coadd.py
1
85521
import matplotlib matplotlib.use('Agg') matplotlib.rc('text', usetex=True) matplotlib.rc('font', serif='computer modern roman') matplotlib.rc('font', **{'sans-serif': 'computer modern sans serif'}) import matplotlib.cm from matplotlib.ticker import FixedFormatter import matplotlib.patches as patches import numpy as np ...
gpl-2.0
tillrohrmann/flink
flink-python/pyflink/table/tests/test_table_environment_api.py
1
34141
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
apache-2.0
kasperschmidt/TDOSE
tdose_model_cube.py
1
50776
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = import numpy as np import os import sys import astropy.io.fits as afits import scipy import scipy.ndimage import scipy.optimize as opt import tdose_utilities as tu import tdose_model_cube as tmc import matplotl...
mit
ondrolexa/pypsbuilder
pypsbuilder/psexplorer.py
1
101298
"""Module to postprocess pseudocestions constructed with builders. This module contains tools to postprocess and explore pseudosections calculated by available builders. It provides a tools to visualize pseudosections constructed with builders, calculate compositional variations within multivariant fields, and plot c...
gpl-3.0
nisse3000/pymatgen
pymatgen/io/abinit/utils.py
1
32782
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """Tools and helper functions for abinit calculations""" from __future__ import unicode_literals, division, print_function import os import six import re import collections import shutil import operator import ...
mit
olafhauk/mne-python
mne/viz/_3d.py
1
137238
# -*- coding: utf-8 -*- """Functions to make 3D plots with M/EEG data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Mainak Jas <maina...
bsd-3-clause
biosustain/memote
src/memote/support/helpers.py
1
30883
# -*- coding: utf-8 -*- # Copyright 2016 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
apache-2.0
McDermott-Group/LabRAD
LabRAD/Servers/Instruments/GHzBoards/ghz_fpga_server.py
1
96703
# Copyright (C) 2007 Matthew Neeley, Daniel Sank, James Wenner # # # 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 # (at your option) any later version. # #...
gpl-2.0
xhqu1981/pymatgen
pymatgen/analysis/pourbaix/plotter.py
1
34818
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import platform from matplotlib.font_manager import FontProperties from matplotlib.ticker import FormatStrFormatter """ This module provides classes for plot...
mit
meteoswiss-mdr/monti-pytroll
scripts/my_msg_module.py
1
53704
''' input: a data object as returned by GeostationaryFactory.create_scene(sat, str(sat_nr).zfill(2), "seviri", time_slot) or by global_data.project(area, precompute=True) output: image function according to the input string ''' from __future__ import division from __future__ import print_function import products...
lgpl-3.0
cpcloud/dask
dask/dataframe/core.py
1
144496
from __future__ import absolute_import, division, print_function from collections import Iterator from functools import wraps, partial import operator from operator import getitem, setitem from pprint import pformat import uuid import warnings from toolz import merge, first, unique, partition_all, remove import panda...
bsd-3-clause
btallman/incubator-airflow
airflow/www/views.py
1
94955
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
apache-2.0
chrisbrickhouse/jeopardy
Game.py
1
30188
__version__ = '1.0.0' __author__ = 'Christian Brickhouse' import re from bs4 import BeautifulSoup as soup from nltk.parse.corenlp import CoreNLPDependencyParser class Game: """An object that represents a Jeopardy game and structures related data. The Game class creates an object that structures and contain...
bsd-3-clause
dougalsutherland/py-sdm
sdm/features.py
1
48075
from __future__ import division, print_function from collections import Counter, defaultdict from contextlib import closing from functools import partial from glob import glob import operator as op import os import cPickle as pickle import shutil import sys import numpy as np from .utils import (imap, izip, iterkeys...
bsd-3-clause
buguen/pylayers
pylayers/simul/link.py
1
73773
# -*- coding: utf-8 -*- # r""" .. currentmodule:: pylayers.simul.link ======= This module runs the electromagnetic simulation at the link level. This module runs the electromagnetic simulation for a link. A deterministic link has two termination points and an associated Layout whereas a statistical link do not need...
lgpl-3.0
adamrp/qiita
qiita_db/analysis.py
1
40802
""" Objects for dealing with Qiita analyses This module provides the implementation of the Analysis and Collection classes. Classes ------- - `Analysis` -- A Qiita Analysis class - `Collection` -- A Qiita Collection class for grouping multiple analyses """ # ----------------------------------------------------------...
bsd-3-clause
DGrady/pandas
pandas/core/indexing.py
2
73643
# pylint: disable=W0223 import textwrap import warnings import numpy as np from pandas.compat import range, zip import pandas.compat as compat from pandas.core.dtypes.generic import ABCDataFrame, ABCPanel, ABCSeries from pandas.core.dtypes.common import ( is_integer_dtype, is_integer, is_float, is_list_like...
bsd-3-clause
dsm054/pandas
pandas/tests/test_multilevel.py
1
109156
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101,W0141 from warnings import catch_warnings, simplefilter import datetime import itertools import pytest import pytz from numpy.random import randn import numpy as np from pandas.core.index import Index, MultiIndex from pandas import (Panel, DataFrame, Series, n...
bsd-3-clause
effigies/mne-python
mne/io/fiff/tests/test_raw.py
1
40214
from __future__ import print_function # Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) import os import os.path as op import glob from copy import deepcopy import warnings import numpy as np from numpy.testing impor...
bsd-3-clause
chebee7i/dit
dit/algorithms/pid_broja.py
1
35304
# -*- coding: utf-8 -*- """ Partial information decompositions and Maxent decompositions of I[sources : target] """ from __future__ import division, print_function import logging from collections import defaultdict import itertools import numpy as np import dit from dit.utils import basic_logger from dit.abstr...
bsd-3-clause
kwikadi/orange3
Orange/widgets/visualize/owvenndiagram.py
1
51519
""" Venn Diagram Widget ------------------- """ import math import unicodedata from collections import namedtuple, defaultdict, OrderedDict, Counter from itertools import count from functools import reduce from xml.sax.saxutils import escape import numpy from PyQt4.QtGui import ( QComboBox, QGraphicsScene, QGrap...
bsd-2-clause
ratnania/caid
caid-gui/patchActions.py
1
105756
# -*- coding: UTF-8 -*- import wx from geometry import geometry from caid.cad_geometry import cad_geometry, cad_nurbs from caid.cad_geometry import couple_vers_entier, entier_vers_couple from viewer import Viewer from numpy import pi, linspace, array, zeros import numpy as np from classActions import * from objectActio...
mit
OGGM/oggm
oggm/tests/test_utils.py
1
102364
import unittest import os import shutil import time import hashlib import tarfile import pytest import itertools from unittest import mock import numpy as np import pandas as pd import xarray as xr from numpy.testing import assert_array_equal, assert_allclose salem = pytest.importorskip('salem') gpd = pytest.importor...
bsd-3-clause
bbfrederick/rapidtide
rapidtide/io.py
1
58924
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2021 Blaise Frederick # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
apache-2.0
bmcfee/librosa
librosa/filters.py
1
37764
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Filters ======= Filter bank construction ------------------------ .. autosummary:: :toctree: generated/ mel chroma constant_q semitone_filterbank Window functions ---------------- .. autosummary:: :toctree: generated/ window_bandwidth ...
isc
rs2/pandas
pandas/tests/io/excel/test_readers.py
1
44366
from datetime import datetime, time from functools import partial import os from urllib.error import URLError import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series import pandas._testing as tm read_ext_params = [".xls",...
bsd-3-clause
predkt/tuner
gridsearchtuner/helper_functions.py
1
36565
import smtplib import pandas as pd import math import numpy as np import operator import string import matplotlib.pyplot as plt import matplotlib.image as mpimg import time import datetime import os import sys import threading from functools import wraps import xgboost as xgb from xgboost.sklearn import XGBClassifie...
gpl-3.0
plotly/python-api
packages/python/plotly/plotly/graph_objs/_heatmap.py
1
85075
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Heatmap(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "heatmap" _valid_props = { "autocolorscale", "coloraxis", "colorbar", "c...
mit
quicksloth/source-code-recommendation-server
src/fake-crawler.py
1
79777
from flask import Flask, request import requests import json app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' # TODO: temporary until all set client and crawler @app.route('/crawl', methods=['GET']) def crawl(): request_body = request.get_json() url = 'http://0.0.0.0:1044...
apache-2.0
googleapis/python-bigquery
tests/system/test_client.py
1
92111
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
apache-2.0
plotly/python-api
packages/python/plotly/plotly/graph_objs/_pie.py
1
78165
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Pie(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "pie" _valid_props = { "automargin", "customdata", "customdatasrc", "directi...
mit
jseabold/statsmodels
statsmodels/tsa/base/tsa_model.py
1
34630
from statsmodels.compat.pandas import is_numeric_dtype import numbers import warnings import numpy as np from pandas import (to_datetime, Int64Index, DatetimeIndex, Period, PeriodIndex, RangeIndex, Timestamp, Series, Index, Float64Index, date_range, period_range) from pandas.ts...
bsd-3-clause
juliantaylor/scipy
scipy/optimize/nonlin.py
2
46296
r""" .. module:: scipy.optimize.nonlin ================= Nonlinear solvers ================= .. currentmodule:: scipy.optimize This is a collection of general-purpose nonlinear multidimensional solvers. These solvers find *x* for which *F(x) = 0*. Both *x* and *F* can be multidimensional. Routines ======== Large-...
bsd-3-clause
TimoRoth/oggm
oggm/tests/test_models.py
1
145333
import os from functools import partial import shutil import warnings import copy import time import numpy as np import pandas as pd import shapely.geometry as shpg from numpy.testing import assert_allclose import pytest # Local imports import oggm from oggm.core import massbalance from oggm.core.massbalance import Li...
bsd-3-clause
matthewghgriffiths/nestedbasinsampling
nestedbasinsampling/sampling/samplers.py
1
35392
# -*- coding: utf-8 -*- import numpy as np from pele.optimize import lbfgs_cpp from nestedbasinsampling.utils import Result, SamplingError from nestedbasinsampling.structure.constraints import BaseConstraint from nestedbasinsampling.sampling.takestep import AdaptiveStepsize, TakestepHyperSphere, hypersphere_step cl...
gpl-3.0
bajibabu/merlin
src/work_in_progress/oliver/mdn_synth.py
2
30030
import pickle import gzip import os, sys, errno import time import math import glob import struct # numpy & theano imports need to be done in this order (only for some numpy installations, not sure why) import numpy # we need to explicitly import this in some cases, not sure why this doesn't get imported with numpy ...
apache-2.0
JazzeYoung/VeryDeepAutoEncoder
theano/tensor/nnet/sigm.py
1
35616
""" Ops and optimizations: sigmoid, softplus. These functions implement special cases of exp and log to improve numerical stability. """ from __future__ import absolute_import, print_function, division import warnings import numpy import theano from theano import config, gof, printing, scalar from theano.compat im...
bsd-3-clause
itoledoc/gWTO2
wtoDatabase.py
1
49682
""" wtoDatabase.py: the gWTO database library. ========================================== This library contains the classes and functions required to query, parse and organize the Projects and SchedBlock information stored at the OSF archive in different tables. """ __author__ = 'itoledo' __metaclass__ = type import ...
gpl-2.0
tridge/MAVProxy
MAVProxy/tools/MAVExplorer.py
1
34405
#!/usr/bin/env python from __future__ import print_function ''' log analysis program Andrew Tridgell December 2014 ''' import copy import sys import time import os import fnmatch import threading import shlex from math import * from MAVProxy.modules.lib import multiproc from MAVProxy.modules.lib import rline from MA...
gpl-3.0
phillynch7/sportsref
sportsref/nfl/boxscores.py
1
33810
import future import future.utils import re import datetime import numpy as np import pandas as pd from pyquery import PyQuery as pq import sportsref __all__ = [ 'BoxScore', ] @sportsref.decorators.memoize def get_season_boxscores_IDs(year, past_only=True): """Returns a series of boxscore IDs for a given ...
gpl-3.0
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/tests/series/test_analytics.py
1
57438
from itertools import product import operator import numpy as np from numpy import nan import pytest from pandas.compat.numpy import _np_version_under1p18 import pandas.util._test_decorators as td import pandas as pd from pandas import ( Categorical, CategoricalIndex, DataFrame, Series, date_rang...
apache-2.0
BMJHayward/infusionsoft_xpmt
src/dataserv.py
1
31807
''' ========================= Infusionsoft Experiment ========================= [![Build Status](https://travis-ci.org/BMJHayward/infusionsoft_xpmt.svg?branch=master)](https://travis-ci.org/BMJHayward/infusionsoft_xpmt) DESCRIPTION ============= API wrapper for Infusionsoft CRM. Infusionsoft a.k.a. 'IS' from here on...
mit
jhonatanoliveira/pgmpy
pgmpy/tests/test_models/test_BayesianModel.py
1
31312
import unittest import networkx as nx import pandas as pd import numpy as np import numpy.testing as np_test from pgmpy.models import BayesianModel, MarkovModel import pgmpy.tests.help_functions as hf from pgmpy.factors.discrete import TabularCPD, JointProbabilityDistribution, DiscreteFactor from pgmpy.independencies...
mit
khrapovs/argamma
argamma/arg.py
1
42217
#!/usr/bin/env python # -*- coding: utf-8 -*- r""" ARG model ========= The code is an implementation of ARG model given in [1]_. Its major features include: * simulation of stochastic volatility and returns * estimation using both MLE and GMM * option pricing References ---------- .. [1] Stanislav Khrap...
mit
arnavd96/Cinemiezer
myvenv/lib/python3.4/site-packages/music21/scale/intervalNetwork.py
1
136499
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Name: scale.intervalNetwork.py # Purpose: A graph of intervals, for scales and harmonies. # # Authors: Christopher Ariza # Michael Scott Cuthbert # # Copyright: Copyright © 2010...
mit
paulray/NICERsoft
nicer/plotutils.py
1
30521
from __future__ import (print_function, division, unicode_literals, absolute_import) import numpy as np import matplotlib.pyplot as plot import matplotlib as mpl import copy import scipy from scipy import ndimage from astropy import log from glob import glob from nicer.values import * from os import path from astropy.t...
mit
ReservoirWebs/GrowChinook
Bioenergetics_test.py
1
46589
#!/usr/bin/python import pylab import glob import time import os import numpy as np import sys from scipy.interpolate import interp1d from scipy.integrate import trapz from scipy.optimize import minimize, brute from csv import DictReader, QUOTE_NONNUMERIC from collections import defaultdict from matplotlib import pypl...
gpl-3.0
Erotemic/ibeis
ibeis/unstable/_grave_bayes.py
1
39387
""" Arc reversal http://www.cs.toronto.edu/~cebly/Papers/simulation.pdf TODO: Need to find faster more mature libraries http://dlib.net/bayes.html http://www.cs.waikato.ac.nz/ml/weka/ http://www.cs.waikato.ac.nz/~remco/weka.bn.pdf https://code.google.com/p/pebl-project/ https://github.com/abh...
apache-2.0
brunojulia/ultracoldUB
WD_interfaz.py
1
32247
# -*- coding: utf-8 -*- """ Created on Sun Oct 30 16:02:58 2016 @author: laura18 """ import os import subprocess from PyQt4 import QtGui from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.uic import loadUiType import math import numpy as np import matplotlib.pyplot as plt import matplot...
gpl-3.0
anomam/pvlib-python
pvlib/pvsystem.py
1
101693
""" The ``pvsystem`` module contains functions for modeling the output and performance of PV modules and inverters. """ from collections import OrderedDict import io import os from urllib.request import urlopen import warnings import numpy as np import pandas as pd from pvlib._deprecation import deprecated from pvli...
bsd-3-clause
larsmans/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
1
37409
""" Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting). """ import numpy as np import warnings from sklearn import datasets from sklearn.base import clone from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import GradientBoostingRegressor from sklearn.ensemble.gra...
bsd-3-clause
cowlicks/dask
dask/bag/tests/test_bag.py
1
33594
# coding=utf-8 from __future__ import absolute_import, division, print_function import pytest import math import os import sys from collections import Iterator from distutils.version import LooseVersion import partd from toolz import merge, join, filter, identity, valmap, groupby, pluck import dask import dask.bag a...
bsd-3-clause
louispotok/pandas
pandas/tests/io/formats/test_format.py
1
105381
# -*- coding: utf-8 -*- """ Test output formatting for Series/DataFrame, including to_string & reprs """ from __future__ import print_function import re import pytz import dateutil import itertools from operator import methodcaller import os import sys import warnings from datetime import datetime import pytest im...
bsd-3-clause
dblalock/dig
tests/exper_bits3.py
1
38508
#!/usr/bin/env python import functools import matplotlib.pyplot as plt import numpy as np import os import pandas as pd from scipy.stats.stats import pearsonr import seaborn as sb import time from collections import namedtuple from sklearn.decomposition import TruncatedSVD import datasets import files import product...
mit
MaxStrange/swedish_chef
statistics/statistics.py
1
33443
""" The main API for the statistics python package. """ from six.moves import cPickle from statistics.statsutils import IngredientsGenerator, SentenceIterator import random import pandas import statistics.recipe_table as recipe_table import statistics.similar as similar from sklearn.cluster import KMeans import string...
apache-2.0
esteinig/geneD3
geneD3.py
1
45728
#!/usr/bin/env python import os import json import pandas import textwrap import argparse import subprocess from Bio import SeqIO from html.parser import HTMLParser def main(): """ """ command_line = CommandLine() args = command_line.arg_dict project_path = os.path.join(args["path"], args["p...
gpl-3.0
toobaz/pandas
pandas/tests/series/test_analytics.py
1
56686
from itertools import product import operator import numpy as np from numpy import nan import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import ( Categorical, CategoricalIndex, DataFrame, Series, date_range, isna, notna, ) from pandas.api.types import...
bsd-3-clause
BryanCutler/spark
python/pyspark/pandas/indexes/multi.py
1
40775
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
apache-2.0
naripok/cryptotrader
cryptotrader/agents/tf_agents.py
1
48312
""" Trader agents implementation for cryptocurrency trading and trade simulation author: Fernando H'.' Canteruccio, José Olímpio Mendes date: 17/07/2017 """ from decimal import getcontext import keras.backend as K K.set_epsilon(1e-26) getcontext().prec = 26 from time import time, sleep import pickle import gridfs a...
mit
winklerand/pandas
pandas/io/json/json.py
1
30316
# pylint: disable-msg=E1101,W0613,W0603 from itertools import islice import os import numpy as np import pandas._libs.json as json from pandas._libs.tslib import iNaT from pandas.compat import StringIO, long, u, to_str from pandas import compat, isna from pandas import Series, DataFrame, to_datetime, MultiIndex from p...
bsd-3-clause
asfox/AT_Ce_RNAseq_exploring
mini_flask_RNAseq_AT.py
1
41358
import pandas as pd import numpy as np import gspread import glob as glob import re import json try: from StringIO import StringIO except ImportError: from io import StringIO import markdown from flask import Flask, make_response, render_template, Markup, request, redirect, Response from werkzeug.contri...
gpl-2.0
andrewchenshx/vnpy
vnpy/app/cta_strategy/backtesting.py
1
37272
from collections import defaultdict from datetime import date, datetime, timedelta from typing import Callable from itertools import product from functools import lru_cache from time import time import multiprocessing import random import numpy as np import matplotlib.pyplot as plt import seaborn as sns from pandas im...
mit
cbertinato/pandas
pandas/tests/plotting/test_series.py
1
33408
# coding: utf-8 """ Test cases for Series.plot """ from datetime import datetime from itertools import chain import numpy as np from numpy.random import randn import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame, Series, date_range from pandas.tests.plotting.com...
bsd-3-clause
kevin-intel/scikit-learn
sklearn/impute/_iterative.py
2
31200
from time import time from collections import namedtuple import warnings from scipy import stats import numpy as np from ..base import clone from ..exceptions import ConvergenceWarning from ..preprocessing import normalize from ..utils import (check_array, check_random_state, _safe_indexing, is_...
bsd-3-clause
jriehl/numba
numba/tests/test_extending.py
1
39925
from __future__ import print_function, division, absolute_import import math import operator import sys import pickle import multiprocessing import ctypes from distutils.version import LooseVersion import re import numpy as np from numba import unittest_support as unittest from numba import njit, jit, types, errors,...
bsd-2-clause
wathen/PhD
MHD/FEniCS/Classes/MHDprec.py
1
38380
import petsc4py import sys petsc4py.init(sys.argv) from petsc4py import PETSc import numpy as np from dolfin import tic, toc import HiptmairSetup import PETScIO as IO import scipy.sparse as sp # import matplotlib.pylab as plt import MatrixOperations as MO import HiptmairSetup class BaseMyPC(object): def setup(sel...
mit
cython-testbed/pandas
pandas/tests/scalar/period/test_asfreq.py
2
36857
import pytest from pandas.errors import OutOfBoundsDatetime import pandas as pd from pandas import Period, offsets from pandas.util import testing as tm from pandas._libs.tslibs.frequencies import _period_code_map class TestFreqConversion(object): """Test frequency conversion of date objects""" @pytest.mark...
bsd-3-clause
andyxhadji/incubator-airflow
airflow/hooks/hive_hooks.py
1
36591
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
apache-2.0
cseed/hail
hail/python/test/hail/table/test_table.py
1
64910
import unittest import pandas as pd import pyspark.sql import pytest import random import hail as hl import hail.expr.aggregators as agg from hail.utils import new_temp_file from hail.utils.java import Env from ..helpers import * from test.hail.matrixtable.test_file_formats import create_all_values_datasets setUpMod...
mit
geophysics/mtpy
mtpy/legacy/occamtools.py
1
286614
# -*- coding: utf-8 -*- """ Created on Tue Aug 23 11:54:38 2011 @author: a1185872 """ import numpy as np import scipy as sp import os import fnmatch from operator import itemgetter import time import matplotlib.colorbar as mcb from matplotlib.colors import Normalize from matplotlib.ticker import MultipleLocator impor...
gpl-3.0
libAtoms/matscipy
examples/electrochemistry/samples_pnp_by_fenics_fem.py
1
39656
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.6.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --...
gpl-2.0
RJT1990/pyflux
pyflux/garch/lmegarch.py
1
33847
import sys if sys.version_info < (3,): range = xrange import numpy as np import pandas as pd import scipy.stats as ss from .. import families as fam from .. import output as op from .. import tests as tst from .. import tsm as tsm from .. import gas as gas from .. import data_check as dc class LMEGARCH(tsm.TSM):...
bsd-3-clause