repo_name
string
path
string
copies
string
size
string
content
string
license
string
loli/sklearn-ensembletrees
sklearn/linear_model/coordinate_descent.py
1
67333
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD 3 clause import sys import warnings from abc import ABCMeta, abstractmethod import n...
bsd-3-clause
huzq/scikit-learn
sklearn/metrics/tests/test_ranking.py
2
60429
import re import pytest import numpy as np import warnings from scipy.sparse import csr_matrix from sklearn import datasets from sklearn import svm from sklearn.utils.extmath import softmax from sklearn.datasets import make_multilabel_classification from sklearn.random_projection import _sparse_random_matrix from skl...
bsd-3-clause
cjayb/mne-python
mne/viz/_3d.py
1
134286
# -*- 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
pierrelb/RMG-Py
rmgpy/cantherm/pdep.py
5
31542
#!/usr/bin/env python # encoding: utf-8 ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2009 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of cha...
mit
ammarkhann/FinalSeniorCode
lib/python2.7/site-packages/numpy/lib/function_base.py
19
164441
from __future__ import division, absolute_import, print_function import collections import operator import re import sys import warnings import numpy as np import numpy.core.numeric as _nx from numpy.core import linspace, atleast_1d, atleast_2d, transpose from numpy.core.numeric import ( ones, zeros, arange, conc...
mit
ianctse/pvlib-python
pvlib/spa.py
3
42425
""" Calculate the solar position using the NREL SPA algorithm either using numpy arrays or compiling the code to machine language with numba. """ # Contributors: # Created by Tony Lorenzo (@alorenzo175), Univ. of Arizona, 2015 from __future__ import division import os import threading import warnings import logging p...
bsd-3-clause
marcsans/cnn-physics-perception
phy/lib/python2.7/site-packages/matplotlib/dviread.py
4
33435
""" An experimental module for reading dvi files output by TeX. Several limitations make this not (currently) useful as a general-purpose dvi preprocessor, but it is currently used by the pdf backend for processing usetex text. Interface:: dvi = Dvi(filename, 72) # iterate over pages (but only one page is support...
mit
krbeverx/Firmware
Tools/ecl_ekf/batch_process_metadata_ekf.py
5
31696
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import os import numpy as np import matplotlib.pyplot as plt """ Performs a composite analysis of ekf log analysis meta data for all .ulg.csv files in the specified directory Generates and saves histogram plots for the meta data in population_data.pdf Gen...
bsd-3-clause
ARM-software/CMSIS_5
CMSIS/DSP/Testing/extractDb.py
2
40339
import argparse import sqlite3 import re import pandas as pd import numpy as np from TestScripts.doc.Structure import * from TestScripts.doc.Format import * import os.path import yaml refCoreName="" # Command to get last runid lastID="""SELECT runid FROM RUN ORDER BY runid DESC LIMIT 1 """ # Command to get last ru...
apache-2.0
google/automl
efficientdet/visualize/vis_utils.py
1
48752
# Copyright 2020 Google Research. All Rights Reserved. # # 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...
apache-2.0
vinodkc/spark
python/pyspark/sql/tests/test_dataframe.py
4
41251
# # 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
jjhelmus/scipy
scipy/stats/tests/test_morestats.py
5
55032
# Author: Travis Oliphant, 2002 # # Further enhancements and tests added by numerous SciPy developers. # from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (TestCase, run_module_suite, assert_array_equal, ...
bsd-3-clause
samzhang111/scikit-learn
sklearn/metrics/classification.py
7
68028
"""Metrics to assess performance on classification task given classe prediction Functions named as ``*_score`` return a scalar value to maximize: the higher the better Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better """ # Authors: Alexandre Gramfort <alexandre.gram...
bsd-3-clause
wzbozon/scikit-learn
sklearn/decomposition/dict_learning.py
10
45415
""" Dictionary learning """ from __future__ import print_function # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools from math import sqrt, ceil import numpy as np from scipy import linalg from numpy.lib.stride_tricks import as_strided from ..b...
bsd-3-clause
zihua/scikit-learn
sklearn/ensemble/weight_boosting.py
9
40890
"""Weight Boosting This module contains weight boosting estimators for both classification and regression. The module structure is the following: - The ``BaseWeightBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regression and classification only differ from each ot...
bsd-3-clause
alephu5/Soundbyte
environment/lib/python3.3/site-packages/pandas/core/format.py
1
75222
#coding: utf-8 from __future__ import print_function # pylint: disable=W0141 import sys from pandas.core.base import PandasObject from pandas.core.common import adjoin, isnull, notnull from pandas.core.index import Index, MultiIndex, _ensure_index from pandas import compat from pandas.compat import(StringIO, lzip, ra...
gpl-3.0
0asa/scikit-learn
sklearn/feature_extraction/text.py
2
48447
# -*- coding: utf-8 -*- # Authors: Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Lars Buitinck <L.J.Buitinck@uva.nl> # Robert Layton <robertlayton@gmail.com> # Jochen Wersdörfer <jochen@wersdoerfer.de> # Roman Sinayev <roman.sinayev@gma...
bsd-3-clause
harisbal/pandas
pandas/core/window.py
1
81442
""" provide a generic structure to support window functions, similar to how we have a Groupby object """ from __future__ import division import warnings import numpy as np from collections import defaultdict from datetime import timedelta from pandas.core.dtypes.generic import ( ABCSeries, ABCDataFrame, ...
bsd-3-clause
bcraenen/KFClassifier
src/root/main/KnowledgeFragmentClassifier.py
1
47785
''' Created on Nov 16, 2016 @author: bcraenen ''' import sys import timing import math import numpy as np import random from warnings import warn from root.main.ArffHandler import Arffhandler from sklearn.ensemble.forest import RandomForestClassifier from sklearn.tree import _tree from sklearn.metrics.classification i...
gpl-3.0
astroNN/astroNN
ah_bootstrap.py
31
36163
""" This bootstrap module contains code for ensuring that the astropy_helpers package will be importable by the time the setup.py script runs. It also includes some workarounds to ensure that a recent-enough version of setuptools is being used for the installation. This module should be the first thing imported in th...
mit
YannickDieter/testbeam_analysis
testbeam_analysis/tools/analysis_utils.py
1
44519
"""This class provides often needed analysis functions, for analysis that is done with python. """ from __future__ import division import logging import os import errno import requests import progressbar import numpy as np import numexpr as ne import tables as tb from numba import njit from scipy.interpolate import sp...
mit
johnmgregoire/vanDover_CHESS
xrdUI.py
1
428115
global XRFALLOWED try: from xrf_analysis import * XRFALLOWED=True except: XRFALLOWED=False from PyQt4.QtCore import * from PyQt4.QtGui import * from XRDdefaults import * from xrd_fileIO_fcns import * from xrd_math_fcns import * from xrdPLOT import * from xrd_diffraction_conversion_fcns import * from xrf_de...
bsd-3-clause
ryfeus/lambda-packs
Tensorflow_Pandas_Numpy/source3.6/pandas/io/sql.py
4
57355
# -*- coding: utf-8 -*- """ Collection of query wrappers / abstractions to both facilitate data retrieval and to reduce dependency on DB-specific API. """ from __future__ import print_function, division from datetime import datetime, date, time import warnings import re import numpy as np import pandas._libs.lib as ...
mit
chiffa/numpy
numpy/core/tests/test_multiarray.py
1
237754
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import ctypes import os if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import D...
bsd-3-clause
steffengraber/nest-simulator
extras/ConnPlotter/ConnPlotter.py
14
83966
# -*- coding: utf-8 -*- # # ConnPlotter.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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...
gpl-2.0
RPGOne/Skynet
scikit-learn-c604ac39ad0e5b066d964df3e8f31ba7ebda1e0e/sklearn/feature_extraction/text.py
2
47905
# -*- coding: utf-8 -*- # Authors: Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Lars Buitinck <L.J.Buitinck@uva.nl> # Robert Layton <robertlayton@gmail.com> # Jochen Wersdörfer <jochen@wersdoerfer.de> # Roman Sinayev <roman.sinayev@gma...
bsd-3-clause
cmunk/protwis
contactnetwork/views.py
1
118910
from django.shortcuts import render from django.db.models import Q, F, Prefetch, Avg, StdDev from django.db.models.functions import Concat from django.views.decorators.cache import cache_page from django.core.cache import cache from django.db import connection from collections import defaultdict from django.conf impor...
apache-2.0
aleju/imgaug
imgaug/multicore.py
2
33599
"""Classes and functions dealing with augmentation on multiple CPU cores.""" from __future__ import print_function, division, absolute_import import sys import multiprocessing import threading import traceback import time import random import platform import numpy as np import cv2 import imgaug.imgaug as ia import im...
mit
lparsons/tools-iuc
tools/fsd/fsd.py
17
44897
#!/usr/bin/env python # Family size distribution of SSCSs # # Author: Monika Heinzl, Johannes-Kepler University Linz (Austria) # Contact: monika.heinzl@edumail.at # # Takes at least one TABULAR file with tags before the alignment to the SSCS, but up to 4 files can be provided, as input. # The program produces a plot w...
mit
cogstat/cogstat
cogstat/cogstat_hyp_test.py
1
47190
# -*- coding: utf-8 -*- """ This module contains functions for hypothesis tests and for related power analyses. Arguments are the pandas data frame (pdf), and parameters (among others they are usually variable names). Output is text (html and some custom notations). Mostly scipy.stats and statsmodels are used to gen...
gpl-3.0
TomAugspurger/pandas
pandas/plotting/_matplotlib/converter.py
1
35867
import contextlib import datetime as pydt from datetime import datetime, timedelta import functools from dateutil.relativedelta import relativedelta import matplotlib.dates as dates from matplotlib.ticker import AutoLocator, Formatter, Locator from matplotlib.transforms import nonsingular import matplotlib.units as un...
bsd-3-clause
iproduct/course-social-robotics
11-dnn-keras/venv/Lib/site-packages/pandas/core/base.py
1
41475
""" Base and utility classes for pandas objects. """ import builtins import textwrap from typing import ( TYPE_CHECKING, Any, Callable, Dict, FrozenSet, Optional, TypeVar, Union, cast, ) import numpy as np import pandas._libs.lib as lib from pandas._typing import DtypeObj, IndexLa...
gpl-2.0
kcompher/FreeDiscovUI
freediscovery/server/resources.py
1
35686
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from glob import glob from textwrap import dedent #from flask_restful import Resource from webargs import fields as wfields from flask_apispec import (marshal_with, use_kwarg...
bsd-3-clause
cybernet14/scikit-learn
sklearn/linear_model/coordinate_descent.py
59
76336
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD 3 clause import sys import warnings from abc import ABCMeta, abstractmethod import n...
bsd-3-clause
dimroc/tensorflow-mnist-tutorial
lib/python3.6/site-packages/matplotlib/figure.py
6
62575
""" The figure module provides the top-level :class:`~matplotlib.artist.Artist`, the :class:`Figure`, which contains all the plot elements. The following classes are defined :class:`SubplotParams` control the default spacing of the subplots :class:`Figure` top level container for all plot elements """ from...
apache-2.0
gfyoung/pandas
pandas/tests/series/test_constructors.py
1
61108
from collections import OrderedDict from datetime import datetime, timedelta from dateutil.tz import tzoffset import numpy as np import numpy.ma as ma import pytest from pandas._libs import iNaT, lib from pandas.core.dtypes.common import is_categorical_dtype, is_datetime64tz_dtype from pandas.core.dtypes.dtypes impo...
bsd-3-clause
eyantrainternship/eYSIP_2015_Depth_Mapping_Kinect
Research/MyProjects/Kinect.py
2
34635
__author__ = 'aniket' """ * * ================================ * * Author List: * Filename: * Date: * Functions: * Global Variables: * Dependent library files: * * e-Yantra - An MHRD project under National Mission on Education using * ICT(NMEICT) * **********************************************...
cc0-1.0
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tseries/tests/test_period.py
7
205020
"""Tests suite for Period handling. Parts derived from scikits.timeseries code, original authors: - Pierre Gerard-Marchant & Matt Knox - pierregm_at_uga_dot_edu - mattknow_ca_at_hotmail_dot_com """ from datetime import datetime, date, timedelta from pandas import Timestamp, _period from pandas.tseries.frequencies i...
gpl-3.0
gregreen/bayestar
scripts/model.py
1
31646
#!/usr/bin/env python # -*- coding: utf-8 -*- # # model.py # # Copyright 2012 Greg Green <greg@greg-UX31A> # # 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 Lice...
gpl-2.0
glennhickey/toil-vg
src/toil_vg/vg_calleval.py
1
48565
#!/usr/bin/env python2.7 """ vg_calleval.py: Compare vcfs with vcfeval. Option to make freebayes calls to use as baseline. Can run on vg_mapeval.py output. """ from __future__ import print_function import argparse, sys, os, os.path, errno, random, subprocess, shutil, itertools, glob, tarfile import doctest, re, json...
apache-2.0
Titan-C/scikit-learn
sklearn/preprocessing/data.py
3
90834
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Eric Martin <eric@ericmart.in> # Giorgio Patrini <giorgio.patrini@anu.edu.au> # Lic...
bsd-3-clause
abonaca/stream_information
scripts/stream_info/paper.py
1
54748
from __future__ import division, print_function import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import h5py import scipy.interpolate from .stream_info import * def all_mocks(): """""" done = get_done()[::-1] N = len(done) ncol = 3 nrow = np.int64(np.ceil(N/ncol))...
mit
jjhelmus/wradlib
wradlib/ipol.py
1
37869
# ------------------------------------------------------------------------------- # Name: ipol # Purpose: # # Authors: Maik Heistermann, Stephan Jacobi and Thomas Pfaff # # Created: 26.10.2011 # Copyright: (c) Maik Heistermann, Stephan Jacobi and Thomas Pfaff 2011 # Licence: The MIT License...
mit
jmmease/pandas
pandas/core/indexes/datetimes.py
1
80862
# pylint: disable=E1101 from __future__ import division import operator import warnings from datetime import time, datetime from datetime import timedelta import numpy as np from pandas.core.base import _shared_docs from pandas.core.dtypes.common import ( _NS_DTYPE, _INT64_DTYPE, is_object_dtype, is_datetime64...
bsd-3-clause
altairpearl/scikit-learn
sklearn/model_selection/_validation.py
4
37132
""" The :mod:`sklearn.model_selection._validation` module includes classes and functions to validate the model. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # License: BSD 3 clause from __...
bsd-3-clause
lerker/cupydle
cupydle/dnn/validacion_cruzada.py
1
33923
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Ponzoni, Nelson" __copyright__ = "Copyright 2015" __credits__ = ["Ponzoni Nelson"] __maintainer__ = "Ponzoni Nelson" __contact__ = "npcuadra@gmail.com" __email__ = "npcuadra@gmail.com" __license__ = "GPL" __version__ = "1.0.0" _...
apache-2.0
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_05_07_2015_server_for_final.py
1
45473
# coding: utf-8 # In[3]: import sys, os sys.path.append('../../../libs/') import os.path import IO_class from IO_class import FileOperator from sklearn import cross_validation import sklearn import numpy as np import csv from dateutil import parser from datetime import timedelta from sklearn import svm import numpy ...
gpl-2.0
MechCoder/scikit-learn
sklearn/linear_model/logistic.py
5
70445
""" Logistic Regression """ # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Fabian Pedregosa <f@bianp.net> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Manoj Kumar <manojkumarsivaraj334@gmail.com> # Lars Buitinck # Simon Wu <s8wu@uwaterloo.ca> # ...
bsd-3-clause
bartosh/zipline
zipline/testing/fixtures.py
1
56869
import os import sqlite3 from unittest import TestCase from contextlib2 import ExitStack from logbook import NullHandler, Logger from six import with_metaclass, iteritems from toolz import flip import pandas as pd import responses from .core import ( create_daily_bar_data, create_minute_bar_data, make_sim...
apache-2.0
KNMI/VERCE
verce-hpc-pe/src/prov/model.py
3
58279
"""Python implementation of the W3C Provenance Data Model (PROV-DM), including support for PROV-JSON import/export References: PROV-DM: http://www.w3.org/TR/prov-dm/ PROV-JSON: https://provenance.ecs.soton.ac.uk/prov-json/ """ from __future__ import (absolute_import, division, print_function, ...
mit
TNT-Samuel/Coding-Projects
DNS Server/Source - Copy/Lib/site-packages/dask/bag/core.py
2
72889
from __future__ import absolute_import, division, print_function import io import itertools import math import uuid import warnings from collections import Iterable, Iterator, defaultdict from distutils.version import LooseVersion from functools import wraps, partial from operator import getitem from random import Ran...
gpl-3.0
oglops/python-standalone
cx_freeze/py.py
2
81783
#!/usr/bin/python # # This is a small stub that is intended to be built into an executable with a # setup.py file using "python setup.py py2exe". This results in an executable # called py.exe. This can be used to run an arbitrary python script on Windows # (XP and later) via py.exe (name of script). # # Changes: # 2...
mit
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/core/groupby/generic.py
1
62112
""" Define the SeriesGroupBy and DataFrameGroupBy classes that hold the groupby interfaces (and some implementations). These are user facing as the result of the ``df.groupby(...)`` operations, which here returns a DataFrameGroupBy object. """ from collections import OrderedDict, abc, namedtuple import copy import fun...
apache-2.0
pthaike/SFrame
oss_src/unity/python/sframe/data_structures/sframe.py
4
211064
""" This module defines the SFrame class which provides the ability to create, access and manipulate a remote scalable dataframe object. SFrame acts similarly to pandas.DataFrame, but the data is completely immutable and is stored column wise on the GraphLab Server side. """ ''' Copyright (C) 2015 Dato, Inc. All righ...
bsd-3-clause
DerekK88/PICwriter
picwriter/picsim.py
1
49978
# -*- coding: utf-8 -*- """ Set of useful functions for converting PICwriter objects from polygons to hdf5 epsilon files that can be easily imported to MEEP or MPB for quick simulations. Functions for launching siulations using MEEP/MPB are also included. """ from __future__ import absolute_import, division, print_fu...
mit
pratapvardhan/scikit-learn
sklearn/decomposition/dict_learning.py
42
46134
""" Dictionary learning """ from __future__ import print_function # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools from math import sqrt, ceil import numpy as np from scipy import linalg from numpy.lib.stride_tricks import as_strided from ..b...
bsd-3-clause
gVallverdu/pymatgen
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py
3
103729
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module contains objects that are used to describe the environments in a structure. The most detailed object (StructureEnvironments) contains a very thorough analysis of the environments of a given ato...
mit
INCF/pybids
bids/layout/layout.py
1
55524
"""BIDSLayout class.""" import os import json import re from collections import defaultdict from io import open from functools import partial, lru_cache from itertools import chain import copy import warnings import enum import difflib import sqlalchemy as sa from bids_validator import BIDSValidator from ..utils impo...
mit
meteoswiss-mdr/monti-pytroll
scripts/plot_coalition2_EuropeS95.py
1
59019
from datetime import datetime import sys, string, os import logging sys.path.insert(0, "/home/lom/users/cll/pytroll/install/lib/python2.6/site-packages") from mpop.satellites import GeostationaryFactory from mpop.projector import get_area_def from mpop.utils import debug_on from pyresample import plot import numpy as n...
lgpl-3.0
facaiy/spark
python/pyspark/ml/clustering.py
2
50327
# # 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
cerrno/neurokernel
neurokernel/plsel.py
1
76764
#!/usr/bin/env python """ Path-like row selector for pandas DataFrames with hierarchical MultiIndexes. """ import copy import itertools import re import numpy as np import pandas as pd import ply.lex as lex import ply.yacc as yacc # Work around lack of support for serializing slices in msgpack 0.4.4: def _encode(ob...
bsd-3-clause
bzero/statsmodels
statsmodels/stats/power.py
31
47523
# -*- coding: utf-8 -*- #pylint: disable-msg=W0142 """Statistical power, solving for nobs, ... - trial version Created on Sat Jan 12 21:48:06 2013 Author: Josef Perktold Example roundtrip - root with respect to all variables calculated, desired nobs 33.367204205 33.367204205 effect 0.5 0.5 alpha 0.05 0.05...
bsd-3-clause
stevenzhang18/Indeed-Flask
lib/pandas/core/frame.py
9
206077
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
apache-2.0
wrobstory/seaborn
seaborn/matrix.py
5
40890
"""Functions to visualize matrices of data.""" import itertools import colorsys import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib import gridspec import numpy as np import pandas as pd from scipy.spatial import distance from scipy.cluster import hierarchy from .axisgrid import Grid from .palett...
bsd-3-clause
jschueller/numpy
numpy/lib/npyio.py
18
71288
from __future__ import division, absolute_import, print_function import sys import os import re import itertools import warnings import weakref from operator import itemgetter import numpy as np from . import format from ._datasource import DataSource from numpy.core.multiarray import packbits, unpackbits from ._ioto...
bsd-3-clause
alephu5/Soundbyte
environment/lib/python3.3/site-packages/pandas/tseries/converter.py
1
33016
from datetime import datetime, timedelta import datetime as pydt import numpy as np from dateutil.relativedelta import relativedelta import matplotlib.units as units import matplotlib.dates as dates from matplotlib.ticker import Formatter, AutoLocator, Locator from matplotlib.transforms import nonsingular from pand...
gpl-3.0
saquiba2/numpytry
numpy/lib/function_base.py
4
143343
from __future__ import division, absolute_import, print_function import warnings import sys import collections import operator import numpy as np import numpy.core.numeric as _nx from numpy.core import linspace, atleast_1d, atleast_2d from numpy.core.numeric import ( ones, zeros, arange, concatenate, array, asarr...
bsd-3-clause
MJuddBooth/pandas
pandas/tests/resample/test_period_index.py
2
34201
from datetime import datetime, timedelta import dateutil import numpy as np import pytest import pytz from pandas._libs.tslibs.ccalendar import DAYS, MONTHS from pandas._libs.tslibs.period import IncompatibleFrequency from pandas.compat import lrange, range, zip import pandas as pd from pandas import DataFrame, Seri...
bsd-3-clause
eranchetz/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/legend.py
69
30705
""" Place a legend on the axes at location loc. Labels are a sequence of strings and loc can be a string or an integer specifying the legend location The location codes are 'best' : 0, (only implemented for axis legends) 'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4...
agpl-3.0
kiryx/pagmo
PyGMO/util/_analysis.py
5
169844
from __future__ import print_function as _dummy class analysis: """ This class contains the tools necessary for exploratory analysis of the search, fitness and constraint space of a given problem. Several tests can be conducted on a low-discrepancy sample of the search space or on an existing populat...
gpl-3.0
jmmease/pandas
pandas/tests/indexes/datetimes/test_ops.py
2
52676
import pytz import pytest import dateutil import warnings import numpy as np from datetime import timedelta from itertools import product import pandas as pd import pandas._libs.tslib as tslib import pandas.util.testing as tm from pandas.errors import PerformanceWarning from pandas import (DatetimeIndex, PeriodIndex, ...
bsd-3-clause
jhonatanoliveira/pgmpy
pgmpy/extern/tabulate.py
8
38706
# -*- coding: utf-8 -*- """Pretty-print tabular data.""" from __future__ import print_function from __future__ import unicode_literals from collections import namedtuple from platform import python_version_tuple import re from pgmpy.extern.six.moves import map, range if python_version_tuple()[0] < "3": from iter...
mit
prikhodkop/AnalysisWorkbench
analysis_workbench_v8.py
1
38739
import numpy as np import numpy.random as rnd import itertools import pandas as pd import os from time import time import sys from data_utils_v2 import * import models_builder as mb import data_handler as dh # import derivatives_computation as dc import json import argparse import scipy.stats as ss import sk...
bsd-3-clause
google/makani
analysis/force_balance_loop/power_calcs/power_calcs.py
1
41070
# Copyright 2020 Makani Technologies 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...
apache-2.0
puruckertom/ubertool
ubertool/trex/trex_exe.py
1
44299
from __future__ import division from functools import wraps import pandas as pd from base.uber_model import UberModel, ModelSharedInputs from .trex_functions import TrexFunctions import time def timefn(fn): @wraps(fn) def measure_time(*args, **kwargs): t1 = time.time() result = fn(*args, **kwa...
unlicense
sureshthalamati/spark
python/pyspark/sql/tests.py
2
224488
# -*- encoding: 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
MJuddBooth/pandas
pandas/tests/test_base.py
2
49728
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime, timedelta import re import sys import numpy as np import pytest from pandas._libs.tslib import iNaT import pandas.compat as compat from pandas.compat import PYPY, StringIO, long from pandas.compat.numpy import np_array_datet...
bsd-3-clause
gVallverdu/pymatgen
pymatgen/analysis/defects/thermodynamics.py
2
30626
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Defect thermodynamics, such as defect phase diagrams, etc. """ import logging import numpy as np from monty.json import MSONable from scipy.spatial import HalfspaceIntersection from scipy.optimize import b...
mit
SheffieldML/GPy
GPy/testing/model_tests.py
1
55349
# Copyright (c) 2012, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from __future__ import division import unittest import numpy as np import GPy class MiscTests(unittest.TestCase): def setUp(self): self.N = 20 self.N_new = 50 self.D = 1 ...
bsd-3-clause
MJuddBooth/pandas
pandas/tests/io/formats/test_style.py
2
54964
import copy import re import textwrap import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame import pandas.util.testing as tm jinja2 = pytest.importorskip('jinja2') from pandas.io.formats.style import Styler, _get_level_lengths # noqa # isort:sk...
bsd-3-clause
kiyoto/statsmodels
statsmodels/tsa/filters/tests/test_filters.py
27
41409
from datetime import datetime import numpy as np from numpy.testing import (assert_almost_equal, assert_equal, assert_allclose, assert_raises, assert_) from numpy import array, column_stack from statsmodels.datasets import macrodata from statsmodels.tsa.base.datetools import dates_from_range ...
bsd-3-clause
asnir/airflow
airflow/www/views.py
3
95451
# -*- 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
davidzchen/tensorflow
tensorflow/tools/compatibility/renames_v2.py
2
60392
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
apache-2.0
mcdaniel67/sympy
sympy/utilities/runtests.py
9
81101
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
bsd-3-clause
drueffer/apage_rom
GDSGenerator.py
1
31798
# -*- coding: utf-8 -*- """ Created on Tue Mar 13 14:45:30 2012 @author: rueffer """ import re import numpy as np from numpy import sin,cos,pi from os.path import abspath,dirname import gdsii.elements as Elements from gdsii.structure import Structure as gdsiiStruct from gdsii.library import Library from m...
gpl-2.0
WarrenWeckesser/scipy
scipy/stats/_discrete_distns.py
3
50628
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from functools import partial from scipy import special from scipy.special import entr, logsumexp, betaln, gammaln as gamln, zeta from scipy._lib._util import _lazywhere, rng_integers from numpy import floor, ceil, ...
bsd-3-clause
pap/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/backends/backend_pdf.py
69
71773
# -*- coding: iso-8859-1 -*- """ A PDF matplotlib backend (not yet complete) Author: Jouni K Seppänen <jks@iki.fi> """ from __future__ import division import os import re import sys import time import warnings import zlib import numpy as npy from cStringIO import StringIO from datetime import datetime from math impo...
agpl-3.0
sunzhxjs/JobGIS
lib/python2.7/site-packages/pandas/io/tests/test_sql.py
9
102928
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TestSQLiteFallbackApi`: t...
mit
m-rossi/matplotlib2tikz
tikzplotlib/_axes.py
1
33213
import matplotlib as mpl import numpy from matplotlib.backends.backend_pgf import ( common_texification as mpl_common_texification, ) from . import _color def _common_texification(string): # Work around <https://github.com/matplotlib/matplotlib/issues/15493> return mpl_common_texification(string).replace...
mit
mikofski/pvlib-python
pvlib/solarposition.py
3
50275
""" Calculate the solar position using a variety of methods/packages. """ # Contributors: # Rob Andrews (@Calama-Consulting), Calama Consulting, 2014 # Will Holmgren (@wholmgren), University of Arizona, 2014 # Tony Lorenzo (@alorenzo175), University of Arizona, 2015 # Cliff hansen (@cwhanse), Sandia National Laborator...
bsd-3-clause
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/scipy/optimize/nonlin.py
9
46761
r""" 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-scale nonlinear solvers: .. autosummary:: newto...
mit
Tobychev/tardis
tardis/io/config_reader.py
2
40348
# Module to read the rather complex config data import logging import os import pprint from astropy import constants, units as u import numpy as np import pandas as pd import tardis from tardis.io.model_reader import ( read_density_file, calculate_density_after_time, read_abundances_file) from tardis.io import c...
bsd-3-clause
kbrannan/PyHSPF
src/pyhspf/preprocessing/cdlextractor.py
1
36736
# cdlextractor.py # # David J. Lampert (djlampert@gmail.com) # # last updated: 08/01/2015 # # Calculates the land use data from a raster file within each of the shapes # in a shapefile. import os, csv, zipfile, time, gdal, numpy from urllib import request from html.parser import HTMLParser from shapefile impor...
bsd-3-clause
jwyterlin/starless
tracer.py
3
30324
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg import scipy.ndimage as ndim import scipy.misc as spm import random,sys,time,os import datetime import multiprocessing as multi import ctypes import logging logging.basicConfig(level=logging.DEBUG) logger = logging....
gpl-3.0
ctoher/pymatgen
pymatgen/phasediagram/plotter.py
3
30401
# coding: utf-8 from __future__ import division, unicode_literals """ This module provides classes for plotting PhaseDiagram objects. """ from six.moves import zip __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, The Materials Project" __version__ = "1.1" __maintainer__ = "Shyue Ping Ong" __email__ = ...
mit
ueshin/apache-spark
python/pyspark/pandas/strings.py
14
71898
# # 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
treycausey/scikit-learn
sklearn/linear_model/least_angle.py
1
46499
""" Least Angle Regression algorithm. See the documentation on the Generalized Linear Model for a complete discussion. """ from __future__ import print_function # Author: Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux # # License: BSD 3 ...
bsd-3-clause
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/io/tests/json/test_pandas.py
1
39668
# pylint: disable-msg=W0612,E1101 from pandas.compat import range, lrange, StringIO, OrderedDict import os import numpy as np from pandas import (Series, DataFrame, DatetimeIndex, Timestamp, read_json, compat) from datetime import timedelta import pandas as pd from pandas.util.testing import (asse...
mit
jshiv/turntable
test/lib/python2.7/site-packages/scipy/signal/ltisys.py
7
31418
""" ltisys -- a collection of classes and functions for modeling linear time invariant systems. """ from __future__ import division, print_function, absolute_import # # Author: Travis Oliphant 2001 # # Feb 2010: Warren Weckesser # Rewrote lsim2 and added impulse2. # Aug 2013: Juan Luis Cano # Rewrote abcd_normaliz...
mit
I2MAX-LearningProject/Flask-server
Core/LearningManager.py
1
31006
from Settings import DefineManager from Utils import LoggingManager from . import FirebaseDatabaseManager import pandas as pd import numpy as np from fbprophet import Prophet import tensorflow as tf import matplotlib import os import matplotlib.pyplot as plt from datetime import datetime tf.set_random_seed(77) mockFo...
mit