repo_name
string
path
string
copies
string
size
string
content
string
license
string
nisse3000/pymatgen
pymatgen/io/lammps/data.py
1
49211
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import from collections import OrderedDict from io import StringIO import itertools import re import warnings import numpy as ...
mit
tgsmith61591/skutil
skutil/utils/util.py
1
34518
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import warnings import sys import traceback import numpy as np import pandas as pd import numbers import scipy.stats as st from sklearn.datasets import load_iris, load_breast_cancer, load_boston from sklearn.externals import six f...
bsd-3-clause
DFO-Ocean-Navigator/Ocean-Data-Map-Project
routes/api_v1_0.py
1
42499
import base64 import datetime import gzip import json import os import shutil import sqlite3 from io import BytesIO import data.class4 as class4 import data.observational.queries as ob_queries import geojson import numpy as np import pandas as pd import plotting.colormap import plotting.scale import plotting.tile impo...
gpl-3.0
volodymyrss/3ML
threeML/minimizer/minimization.py
1
38700
import collections import math import numpy as np import pandas as pd import scipy.optimize from threeML.io.progress_bar import progress_bar from threeML.exceptions.custom_exceptions import custom_warnings from threeML.utils.differentiation import get_hessian, ParameterOnBoundary # Set the warnings to be issued alway...
bsd-3-clause
rs2/pandas
pandas/core/arrays/interval.py
1
45756
from operator import le, lt import textwrap import numpy as np from pandas._config import get_option from pandas._libs.interval import ( VALID_CLOSED, Interval, IntervalMixin, intervals_to_interval_bounds, ) from pandas.compat.numpy import function as nv from pandas.util._decorators import Appender ...
bsd-3-clause
samuelleblanc/fp
gui.py
1
80825
# gui codes to use in coordination with moving_lines software # Copyright 2015 Samuel LeBlanc import tkSimpleDialog import Tkinter as Tk from matplotlib.backends.backend_tkagg import NavigationToolbar2TkAgg, ToolTip from matplotlib.backend_bases import Event class gui: """ Purpose: Class that contains ...
gpl-3.0
qbuat/rootpy
rootpy/plotting/base.py
1
36416
# Copyright 2012 the rootpy developers # distributed under the terms of the GNU General Public License """ This module contains base classes defining core funcionality """ from __future__ import absolute_import from functools import wraps import warnings import ROOT from .. import asrootpy from ..decorators import c...
gpl-3.0
ndingwall/scikit-learn
sklearn/multiclass.py
1
35400
""" Multiclass classification strategies ==================================== This module implements multiclass learning algorithms: - one-vs-the-rest / one-vs-all - one-vs-one - error correcting output codes The estimators provided in this module are meta-estimators: they require a base estimator to be p...
bsd-3-clause
dialounke/pylayers
pylayers/mobility/ban/body.py
1
97413
# -*- coding:Utf-8 -*- """ Body Class =========== This class implements the body model .. autoclass:: Body :members: Cylinder Class ============== .. autoclass:: Cylinder :members: """ #import mayavi.mlab as mlab import numpy as np import scipy.stats as sp import ConfigParser import os import copy from p...
mit
Captain-Coder/tribler
TriblerGUI/debug_window.py
1
32589
from __future__ import absolute_import import datetime import os import socket from time import localtime, strftime import matplotlib import psutil from meliae import scanner matplotlib.use('Qt5Agg') from matplotlib.backends.backend_qt5agg import FigureCanvas from matplotlib.dates import DateFormatter from matplotli...
lgpl-3.0
chrinide/hep_ml
hep_ml/losses.py
1
38273
""" **hep_ml.losses** contains different loss functions to use in gradient boosting. Apart from standard classification losses, **hep_ml** contains losses for uniform classification (see :class:`BinFlatnessLossFunction`, :class:`KnnFlatnessLossFunction`, :class:`KnnAdaLossFunction`) and for ranking (see :class:`RankBo...
apache-2.0
choderalab/ExpressionExplorer
scripts/select-PDB-constructs.py
1
38630
# For a set of target protein domains, aligns PDB sequences against the target # protein sequence and a sequence from a chosen plasmid library. Ranks the PDB # sequences based on variables such as similarity to the target domain # sequence, and likely authenticity of the PDB construct sequence (given that # there are f...
gpl-2.0
AlbanoCastroSousa/RESSPyLab
RESSPyLab/RESSPyLab.py
1
31684
# -*- coding: utf-8 -*- """@package RESSPyLab Material model and solvers for the original Voce-Chaboche model. """ import numpy as np import pandas as pd import codecs import numdifftools.nd_algopy as nda def VCsimCurve(x_sol, testClean): sy_0 = x_sol[1] * 1.0 E = x_sol[0] * 1.0 Q = x_sol[2] * 1.0 b =...
mit
yavalvas/yav_com
build/matplotlib/lib/matplotlib/colorbar.py
1
49309
''' Colorbar toolkit with two classes and a function: :class:`ColorbarBase` the base class with full colorbar drawing functionality. It can be used as-is to make a colorbar for a given colormap; a mappable object (e.g., image) is not needed. :class:`Colorbar` the derived class ...
mit
jmtyszka/atlaskit
atlas_report.py
1
30700
#!/usr/bin/env python3 """ Create a report of intra and inter-observer atlas label statistics - requires that atlas.py has been run previously on the labels directory - generates HTML report pages in subdirectory of atlas directory Usage ---- atlas_report.py -a <atlas directory created by atlas.py> atlas_report.py -h ...
gpl-3.0
ifuding/Kaggle
Instacart/Code/fd_keras.py
1
34543
# Author : Ding Fu & Paul-Antoine Nguyen # This script considers all the products a user has ordered # # We train a model computing the probability of reorder on the "train" data # # For the submission, we keep the orders that have a probability of # reorder higher than a threshold import tempfile import numpy as np...
apache-2.0
danfeldman90/EDGE
EDGE.py
1
135628
#!/usr/bin/env python # Created by Dan Feldman and Connor Robinson for analyzing data from Espaillat Group research models. # Last updated: 7/11/16 by Dan #---------------------------------------------IMPORT RELEVANT MODULES-------------------------------------------- import numpy as np import matplotlib.pyplot as plt...
mit
neherlab/treetime
treetime/clock_tree.py
1
44115
from __future__ import print_function, division, absolute_import import numpy as np from . import config as ttconf from . import MissingDataError from .treeanc import TreeAnc from .utils import numeric_date, DateConversion, datestring_from_numeric from .distribution import Distribution from .branch_len_interpolator imp...
mit
rsmailach/SRPT
ClassBased_SingleServer_LoadPerClass.py
1
43853
#----------------------------------------------------------------------# # ApproxSRPTE.py # # This application simulates a single server with Poisson arrivals # and processing times of a general distribution. There are errors in # time estimates within a range. Arrivals are assigned to SRPT classes # using the methods ...
mit
Titan-C/sphinx-gallery
sphinx_gallery/tests/test_full.py
1
34837
# -*- coding: utf-8 -*- # Author: Óscar Nájera # License: 3-clause BSD """ Test the SG pipeline used with Sphinx """ from __future__ import division, absolute_import, print_function import codecs from io import StringIO import os import os.path as op import re import shutil import sys import time import numpy as np f...
bsd-3-clause
peckhams/topoflow
topoflow/components/topoflow_driver.py
1
73597
## Copyright (c) 2001-2017, Scott D. Peckham ## ## Jan 2013. Revised handling of input/output names. ## ## Oct 2012. CSDMS Standard Names and BMI. ## ## May 2012. Q_outlet -> Q_outlet[0] (5/19/12) ## ## May 2010. Changes to initialize() and read_cfg_file() ## ## Feb 2010. Channels comp. now calls dp.update() itself....
mit
roryk/umis
umis/umis.py
1
47603
#!/usr/bin/env python from __future__ import print_function import os import itertools import collections import regex as re import json import gzip import sys import logging import time import multiprocessing import tempfile from io import BufferedReader from functools import partial import toolz as tz from .barcod...
mit
uber/ludwig
tests/integration_tests/test_visualization_api.py
1
35113
# -*- coding: utf-8 -*- # Copyright (c) 2019 Uber Technologies, Inc. # # 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 ...
apache-2.0
jseabold/statsmodels
statsmodels/tsa/statespace/sarimax.py
1
83867
""" SARIMAX Model Author: Chad Fulton License: Simplified-BSD """ from warnings import warn import numpy as np import pandas as pd from statsmodels.compat.pandas import Appender from statsmodels.tools.tools import Bunch from statsmodels.tools.data import _is_using_pandas from statsmodels.tools.decorators import cac...
bsd-3-clause
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/interpolate/interpolate.py
2
84928
""" Classes for interpolating values. """ from __future__ import division, print_function, absolute_import import itertools from numpy import (shape, sometrue, array, transpose, searchsorted, ones, logical_or, atleast_1d, atleast_2d, ravel, dot, poly1d, asarray, intp) import nump...
apache-2.0
ARudiuk/mne-python
mne/viz/topomap.py
1
79917
"""Functions to plot M/EEG data e.g. topographies """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com...
bsd-3-clause
desihub/desisim
py/desisim/templates.py
1
144638
""" desisim.templates ================= Functions to simulate spectral templates for DESI. """ from __future__ import division, print_function import os import sys import numpy as np import multiprocessing from desiutil.log import get_logger, DEBUG from desisim.io import empty_metatable try: from scipy import c...
bsd-3-clause
plotly/python-api
packages/python/plotly/plotly/graph_objs/layout/coloraxis/_colorbar.py
1
69700
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class ColorBar(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.coloraxis" _path_str = "layout.coloraxis.colorbar" _valid_props = { "bgc...
mit
pivotalsoftware/pymadlib
pymadlib/pymadlib.py
1
37354
''' Python wrapper for MADlib vatsan.cs@utexas.edu, 3 Jan 2013 This currently implements the following algorithms of MADlib 0.5: 1) Linear regression (+ can also accept categorical columns as features) 2) Logistic Regression (+ can also accept categorical columns as features) 3) ...
bsd-2-clause
cnerger/wnd-charm
wndcharm/FeatureSpace.py
1
96521
""" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright (C) 2015 National Institutes of Health This library is free software; you can redistribute it and/or modify it under the ...
lgpl-2.1
houseind/robothon
GlyphProofer/dist/GlyphProofer.app/Contents/Resources/lib/python2.6/numpy/lib/polynomial.py
1
30502
""" Functions to operate on polynomials. """ __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core.numeric as NX from numpy.core import isscalar, abs from numpy.lib...
mit
Eric89GXL/scipy
scipy/stats/morestats.py
3
106197
from __future__ import division, print_function, absolute_import import math import warnings from collections import namedtuple import numpy as np from numpy import (isscalar, r_, log, around, unique, asarray, zeros, arange, sort, amin, amax, any, atleast_1d, sqrt, ceil, floor, a...
bsd-3-clause
dimkal/mne-python
mne/viz/epochs.py
1
66862
"""Functions to plot epochs data """ # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Jaakko Leppakangas <jaeilepp@student.jyu.f...
bsd-3-clause
pkariz/nnsearch
nnsearch/algos/rtree.py
1
32590
from heapq import heappop, heappush, heapify #storing k-nn import random #random testi import matplotlib.pyplot as plt import matplotlib.patches as mpatches from utils.nodes import Inner, Leaf from utils.rectangle import Rect from utils.entry import Entry import cPickle def mink2(x, y, p): """ Returns minkows...
gpl-3.0
krischer/LASIF
lasif/scripts/lasif_cli.py
1
57756
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The main LASIF console script. It is important to import necessary things at the method level to make importing this file as fast as possible. Otherwise using the command line interface feels sluggish and slow. All functions starting with "lasif_" will automatically ...
gpl-3.0
Ajapaik/ajapaik-web
ajapaik/ajapaik/models.py
1
85430
import os from contextlib import closing from copy import deepcopy from datetime import datetime from io import StringIO from json import loads from math import degrees from time import sleep from urllib.request import urlopen import numpy import requests from PIL import Image, ImageOps from bulk_update.manager import...
gpl-3.0
GuessWhoSamFoo/pandas
pandas/tests/test_window.py
1
156476
from collections import OrderedDict from datetime import datetime, timedelta from itertools import product import warnings from warnings import catch_warnings import numpy as np from numpy.random import randn import pytest from pandas.compat import range, zip from pandas.errors import UnsupportedFunctionCall import p...
bsd-3-clause
ryandougherty/mwa-capstone
MWA_Tools/build/matplotlib/lib/matplotlib/colors.py
1
44182
""" A module for converting numbers or color arguments to *RGB* or *RGBA* *RGB* and *RGBA* are sequences of, respectively, 3 or 4 floats in the range 0-1. This module includes functions and classes for color specification conversions, and for mapping numbers to colors in a 1-D array of colors called a colormap. Color...
gpl-2.0
hrichstein/Stellar_mass_env_Density
Codes/Scripts/reference.py
1
75204
from __future__ import division, absolute_import import astropy.stats import glob import math import matplotlib.pyplot as plt from matplotlib import ticker from matplotlib.ticker import FormatStrFormatter import numpy as np import os import pandas as pd from scipy import optimize,spatial ###########################...
mit
andreashorn/lead_dbs
ext_libs/OSS-DBS/OSS_platform/Electrode_files/St_Jude6173_floating_profile.py
1
36216
# -*- coding: utf-8 -*- ### ### This file is generated automatically by SALOME v8.3.0 with dump python functionality ###### Run with DPS_lead_position_V9.py import sys import salome salome.salome_init() theStudy = salome.myStudy import salome_notebook notebook = salome_notebook.NoteBook(theStudy) ### ### GEOM com...
gpl-3.0
ReservoirWebs/GrowChinook
Bioenergetics_dev.py
1
46105
#!/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
SiccarPoint/numpy
numpy/lib/npyio.py
2
73744
from __future__ import division, absolute_import, print_function import sys import os import re import itertools import warnings import weakref from operator import itemgetter, index as opindex import numpy as np from . import format from ._datasource import DataSource from numpy.core.multiarray import packbits, unpa...
bsd-3-clause
Winand/pandas
pandas/core/indexes/multi.py
1
97612
# pylint: disable=E1101,E1103,W0232 import datetime import warnings from functools import partial from sys import getsizeof import numpy as np from pandas._libs import index as libindex, lib, Timestamp from pandas.compat import range, zip, lrange, lzip, map from pandas.compat.numpy import function as nv from pandas ...
bsd-3-clause
badbytes/pymeg
gui/wx/PYMEG.py
1
137317
#!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade 0.6.3 on Mon Sep 15 19:43:15 2008 import wx import os from matplotlib import use use('WXAgg') from pylab import * from pdf2py import data,channel,listparse, pdf, readwrite, tapbuild, lA2array from mri import img, viewmri, transform, mr2vtk, vtkview, ...
gpl-3.0
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/indexes/multi.py
1
78405
# pylint: disable=E1101,E1103,W0232 import datetime import warnings from functools import partial from sys import getsizeof import numpy as np import pandas.lib as lib import pandas.index as _index from pandas.lib import Timestamp from pandas.compat import range, zip, lrange, lzip, map from pandas import compat from ...
gpl-2.0
milcent/Benford_py
benford/benford.py
1
63925
''' Benford_py for Python is a module for application of Benford's Law to a sequence of numbers. Dependent on pandas, numpy and matplotlib All logarithms ar in base 10: "np.log10" Copyright (C) 2014 Marcel Milcent This program is free software: you can redistribute it and/or modify it under the terms of the GNU Ge...
gpl-3.0
jseabold/statsmodels
statsmodels/tsa/statespace/varmax.py
4
50033
# -*- coding: utf-8 -*- """ Vector Autoregressive Moving Average with eXogenous regressors model Author: Chad Fulton License: Simplified-BSD """ import contextlib from warnings import warn import pandas as pd import numpy as np from statsmodels.compat.pandas import Appender from statsmodels.tools.tools import Bunch...
bsd-3-clause
QuantumQuadrate/CsPyController
python/picampython.py
1
43449
"""andor.py Part of the AQuA Cesium Controller software package author=Martin Lichtman created=2014-07-28 modified>=2014-07-30 This code communicates with the Andor Luca camera. It can both get and set the settings of the camera, and read images. Single shot and video modes are supported. T...
lgpl-3.0
jimmycallin/master-thesis
architectures/conll16st-hd-sdp/DiscourseSenseClassification_FeatureExtraction_v1.py
1
42458
#!/usr/bin/env python # -*- coding: utf-8 -*- """Sample Discourse Relation Classifier Train Train parser for suplementary evaluation Train should take three arguments $inputDataset = the folder of the dataset to parse. The folder structure is the same as in the tar file $inputDataset/parses.json $inputDataset...
mit
FedoraScientific/salome-paravis
src/PV_SWIG/paravisSM.py
1
112492
# Copyright (C) 2010-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library ...
lgpl-2.1
3324fr/spinalcordtoolbox
scripts/sct_straighten_spinalcord.py
1
48464
#!/usr/bin/env python # # This program takes as input an anatomic image and the centerline or segmentation of its spinal cord (that you can get # using sct_get_centerline.py or sct_segmentation_propagation) and returns the anatomic image where the spinal # cord was straightened. # # ------------------------------------...
mit
WangWenjun559/Weiss
summary/sumy/sklearn/linear_model/least_angle.py
1
49370
""" 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 ...
apache-2.0
andycasey/snob
snob/mixture_search.py
1
82543
""" An estimator for modelling data from a mixture of Gaussians, using an objective function based on minimum message length. """ __all__ = [ "GaussianMixture", "kullback_leibler_for_multivariate_normals", "responsibility_matrix", "split_component", "merge_component", "delete_component", ] import ...
mit
mraspaud/dask
dask/array/core.py
1
125859
from __future__ import absolute_import, division, print_function from bisect import bisect from collections import Iterable, Mapping from collections import Iterator from functools import partial, wraps import inspect from itertools import product from numbers import Integral, Number import operator from operator impo...
bsd-3-clause
majetideepak/arrow
python/pyarrow/pandas_compat.py
1
33582
# 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 u...
apache-2.0
CalebBell/ht
ht/conv_internal.py
1
59534
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
mit
matthew-brett/draft-statsmodels
scikits/statsmodels/sandbox/regression/mle.py
1
51757
'''general non-linear MLE for time series analysis idea for general version ------------------------ subclass defines geterrors(parameters) besides loglike,... and covariance matrix of parameter estimates (e.g. from hessian or outerproduct of jacobian) update: I don't really need geterrors directly, but get_h the con...
bsd-3-clause
cbertinato/pandas
pandas/tseries/offsets.py
1
83611
from datetime import date, datetime, timedelta import functools import operator from typing import Optional from dateutil.easter import easter import numpy as np from pandas._libs.tslibs import ( NaT, OutOfBoundsDatetime, Timedelta, Timestamp, ccalendar, conversion, delta_to_nanoseconds, frequencies as libfre...
bsd-3-clause
magnunor/hyperspy
hyperspy/_signals/eds.py
1
44437
# -*- coding: utf-8 -*- # Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
gpl-3.0
maxlikely/scikit-learn
sklearn/preprocessing.py
1
41872
# 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> # License: BSD from collections import Sequence import warnings import numbers import numpy as np imp...
bsd-3-clause
ssanderson/dask
dask/dataframe/tests/test_dataframe.py
1
78803
from itertools import product from datetime import datetime from operator import getitem import pandas as pd import pandas.util.testing as tm import numpy as np import pytest import dask from dask.async import get_sync from dask.utils import raises, ignoring import dask.dataframe as dd from dask.dataframe.core import...
bsd-3-clause
ecell/ecell4
ecell4/plotting/_matplotlib.py
1
36241
import os import types import random from ..util.session import load_world from .styles import default_color_scale, matplotlib_color_scale from ._core import get_range_of_world, get_range_of_trajectories, display_anim, eval_key __all__ = [ "plot_number_observer_with_matplotlib", "plot_world_with_matplotlib", ...
gpl-3.0
fumitoh/modelx
modelx/serialize/serializer_2.py
1
41033
# Copyright (c) 2017-2021 Fumito Hamamura <fumito.ham@gmail.com> # This library is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation version 3. # # This library is distributed in the hope that it will be use...
gpl-3.0
clipo/idss-seriation
seriation/IDSS.py
1
124476
#!/usr/bin/env python # Copyright (c) 2013-2015. Carl P. Lipo <clipo@csulb.edu> # # This work is licensed under the terms of the Apache Software License, Version 2.0. See the file LICENSE for details. __author__ = 'carllipo' ## NOTE the library base for this program is the anaconda distribution of python. There are ...
apache-2.0
srodney/hstsntools
hstsnphot.py
1
45549
#!/usr/bin/env python # C.McCully, S.Rodney and B.Patel # """ hstsnphot.py Perform aperture photometry in Vega magnitudes an image or set of images. Command-line operation for single-image, single-source photometry: Syntax : hstsnphot.py [options] image [xcoord ycoord] Options: -h/--help : print this help -v ...
mit
kevin-intel/scikit-learn
sklearn/ensemble/_weight_boosting.py
2
43340
"""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 oth...
bsd-3-clause
datapythonista/pandas
pandas/io/html.py
2
34556
""" :mod:`pandas.io.html` is a module containing functionality for dealing with HTML IO. """ from __future__ import annotations from collections import abc import numbers import os import re from typing import ( Pattern, Sequence, ) from pandas._typing import FilePathOrBuffer from pandas.compat._optional im...
bsd-3-clause
erdc-cm/tethysapp-streamflow_prediction_tool
tethysapp/streamflow_prediction_tool/controllers_ajax.py
1
61469
# -*- coding: utf-8 -*- """controllers_ajax.py Created by Alan D. Snow, Curtis Rae, Shawn Crawley 2015. License: BSD 3-Clause """ from csv import writer as csv_writer import datetime from json import load as json_load import os import numpy as np import pandas as pd import plotly.graph_objs as go import scipy...
bsd-3-clause
szhem/spark
python/pyspark/sql/tests.py
2
232229
# -*- 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
BIDS-Apps/freesurfer
run.py
1
31420
#!/usr/bin/env python3 import argparse import os import shutil import nibabel from glob import glob from subprocess import Popen, PIPE from shutil import rmtree import subprocess from warnings import warn import pandas as pd import re import errno def run(command, env={}, ignore_errors=False): merged_env = os.envi...
apache-2.0
whiteshield/EHScripter
EHScripter/app.py
1
52085
##!/usr/bin/env python3 # -*- coding: utf-8 -*- import tkinter from tkinter import * from tkinter.ttk import * from tkinter import filedialog, messagebox, simpledialog import re, os, platform import time import yaml import imp from .config import DefaultConfig from .nessus import NessusToMarkdown from .burp import Bur...
gpl-2.0
Fernerkundung/sentinelsat
sentinelsat/sentinel.py
1
57743
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import concurrent.futures import hashlib import itertools import logging import re import shutil import threading import warnings import xml.etree.ElementTree as ET from collections import OrderedDict, defaultdict from contextlib ...
gpl-3.0
kkozarev/mwacme
MS_Inspect_menu_version/ms_inspect.py
1
37360
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import numpy as np import time from functools import partial from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, \ NavigationToolbar2TkAgg from matplotlib.figure import Figure import matp...
gpl-2.0
vortex-ape/scikit-learn
sklearn/preprocessing/data.py
4
106915
# 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> # ...
bsd-3-clause
Eric89GXL/PySurfer
surfer/viz.py
1
143648
from copy import deepcopy import logging from math import floor import os from os.path import join as pjoin import warnings from warnings import warn import numpy as np import nibabel as nib from mayavi import mlab from mayavi.tools.mlab_scene_model import MlabSceneModel from mayavi.core import lut_manager from maya...
bsd-3-clause
rs2/bokeh
bokeh/core/properties.py
1
69569
''' Properties are objects that can be assigned as class attributes on Bokeh models, to provide automatic serialization, validation, and documentation. This documentation is broken down into the following sections: .. contents:: :local: Overview -------- There are many property types defined in the module, for ...
bsd-3-clause
the872/pyglmnet
pyglmnet/pyglmnet.py
1
36667
"""Python implementation of elastic-net regularized GLMs.""" from copy import deepcopy import numpy as np from scipy.special import expit from scipy.stats import norm from .utils import logger, set_log_level from .base import BaseEstimator, is_classifier, check_version def _lmb(distr, beta0, beta, X, eta): """C...
mit
toobaz/pandas
pandas/tests/test_algos.py
1
77523
from datetime import datetime from itertools import permutations import struct import numpy as np from numpy import nan from numpy.random import RandomState import pytest from pandas._libs import algos as libalgos, groupby as libgroupby, hashtable as ht from pandas.compat.numpy import np_array_datetime64_compat impor...
bsd-3-clause
njwilson23/scipy
scipy/cluster/tests/test_hierarchy.py
1
36256
#! /usr/bin/env python # # Author: Damian Eads # Date: April 17, 2008 # # Copyright (C) 2008 Damian Eads # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copy...
bsd-3-clause
cbertinato/pandas
pandas/io/formats/style.py
1
46789
""" Module for applying conditional formatting to DataFrames and Series. """ from collections import defaultdict from contextlib import contextmanager import copy from functools import partial from itertools import product from uuid import uuid1 import numpy as np from pandas._config import get_option from pandas.c...
bsd-3-clause
mlperf/training_results_v0.7
Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/python/mxnet/numpy/multiarray.py
1
242310
#!/usr/bin/env python # 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 # "L...
apache-2.0
wxiang7/airflow
airflow/www/views.py
1
81111
# -*- 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
PascalSteger/gravimage
programs/plotting/gi_collection_disk.py
1
34380
#!/usr/bin/env python3 ## @file # collect profiles and perform actions on them # (c) 2014 ETHZ Pascal Steger, psteger@phys.ethz.ch import numpy as np import numpy.random as npr import pdb import matplotlib.pyplot as plt plt.ioff() from gl_class_profiles import Profiles import gl_output as go import gl_helper as gh...
gpl-2.0
kevin-intel/scikit-learn
sklearn/multiclass.py
2
37115
""" Multiclass classification strategies ==================================== This module implements multiclass learning algorithms: - one-vs-the-rest / one-vs-all - one-vs-one - error correcting output codes The estimators provided in this module are meta-estimators: they require a base estimator to be p...
bsd-3-clause
eubr-bigsea/tahiti
migrations/versions/4b5b8e3470af_update_sklearn_operations.py
1
38032
# -*- coding: utf-8 -*- """Adding distinct sklearn operations Revision ID: 4b5b8e3470af Revises: 49be2ac6780f Create Date: 2018-08-26 10:42:09.555626 """ from alembic import context from alembic import op from sqlalchemy import String, Integer, Text from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import ...
apache-2.0
henry-ngo/VIP
vip_hci/preproc/recentering.py
1
49305
#! /usr/bin/env python """ Module containing functions for cubes frame registration. """ from __future__ import division from __future__ import print_function __author__ = 'C. Gomez @ ULg, V. Christiaens @ ULg/UChile, G. Ruane' __all__ = ['frame_shift', 'frame_center_radon', 'frame_center_satsp...
mit
clemkoa/scikit-learn
sklearn/manifold/t_sne.py
3
35319
# Author: Alexander Fabisch -- <afabisch@informatik.uni-bremen.de> # Author: Christopher Moody <chrisemoody@gmail.com> # Author: Nick Travers <nickt@squareup.com> # License: BSD 3 clause (C) 2014 # This is the exact and Barnes-Hut t-SNE implementation. There are other # modifications of the algorithm: # * Fast Optimi...
bsd-3-clause
jakereimer/pipeline
python/pipeline/pupil.py
1
65795
""" This module is for pupil related tables and computation. Current version is at 1.0.0 as of 10/29/2019 What's changed in this version: 1. Got rid of filter_config table 2. Added a functionality of removing tracking directory and its sub-directories if the job was not done completely 3. Method name changed from DLC_...
lgpl-3.0
chrisburr/scikit-learn
sklearn/metrics/tests/test_classification.py
1
50887
from __future__ import division, print_function import numpy as np from scipy import linalg from functools import partial from itertools import product import warnings from sklearn import datasets from sklearn import svm from sklearn.datasets import make_multilabel_classification from sklearn.preprocessing import la...
bsd-3-clause
apdavison/elephant
elephant/test/test_pandas_bridge.py
1
113867
# -*- coding: utf-8 -*- """ Unit tests for the pandas bridge module. :copyright: Copyright 2014-2016 by the Elephant team, see `doc/authors.rst`. :license: Modified BSD, see LICENSE.txt for details. """ from __future__ import division, print_function import unittest import warnings from distutils.version import Stri...
bsd-3-clause
jcornford/pyecog
pyecog/ndf/datahandler.py
1
32297
# -*- coding: utf-8 -*- import sys import os import multiprocessing import shutil import traceback import time import logging import h5py import numpy as np import pandas as pd from scipy import signal, stats from .ndfconverter import NdfFile from .h5loader import H5File from .feature_extractor import FeatureExtracto...
mit
mikemoorester/ESM
nadir.py
1
82016
#!/usr/bin/env python from __future__ import division, print_function, absolute_import #import matplotlib #matplotlib.use('Agg') import numpy as np import re import calendar import os, sys import datetime as dt import pickle import multiprocessing import antenna as ant import residuals as res import gpsTime as gt i...
mit
rubydatasystems/seniority_list
seniority_list/matplotlib_charting.py
1
305236
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # seniority_list is an analytical tool used when seniority-based work # groups merge. It brings modern data science to the area of labor # integration, utilizing the powerful data analysis capabilities of Python # scientific computing. # Copyright (C) 2016-2017 Robert E...
gpl-3.0
CospanDesign/python
opencv/klt.py
1
39515
#! /usr/bin/env python # Copyright (c) 2017 Dave McCoy (dave.mccoy@cospandesign.com) # # NAME 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 # any later version. # # NAME ...
mit
smaegol/LINE_1_RACE_seq_analysis
analyze_race_seq.py
1
66937
#!/usr/bin/env python ####################################################################################### ### ### ### Copyright (C) 2017 Pawel Krawczyk (p.krawczyk@ibb.waw.pl) ### ### ...
gpl-3.0
magic2du/contact_matrix
Contact_maps/mnist_psuedo_ipython_dl_ppi/code/DL_Stacked_Model_Mnist_Psuedo_05_19_2015.py
1
39571
# coding: utf-8 # In[1]: # this part imports libs and load data from csv file import sys sys.path.append('../../../libs/') import csv from dateutil import parser from datetime import timedelta from sklearn import svm import numpy as np #import pandas as pd import pickle from sklearn.cross_validation import train_tes...
gpl-2.0
hobson/pug-nlp
pug/nlp/util.py
1
112872
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Utilities for Natural Language Processing (NLP): * Vocabulary and dimension reduction * Word statistics calculation * Add a timezone to a datetime * Slice a django queryset * Genereate batches from a long list or sequence * Inverse dict/hashtable lookup * Generate a val...
mit
demisto/content
Packs/Base/Scripts/DBotMLFetchData/DBotMLFetchData.py
1
40573
import uuid from itertools import combinations import dateutil import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import json import pickle import re from nltk.tokenize import word_tokenize, sent_tokenize import string from bs4 import BeautifulSoup from collections imp...
mit
thunderhoser/GewitterGefahr
gewittergefahr/gg_utils/feature_selection.py
1
67199
"""Implements various feature-selection algorithms. --- REFERENCES --- Lakshmanan, V., C. Karstens, J. Krause, K. Elmore, A. Ryzhkov, and S. Berkseth, 2015: "Which polarimetric variables are important for weather/no-weather discrimination?" Journal of Atmospheric and Oceanic Technology, 32 (6), 1209-1223....
mit
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/metrics/classification.py
1
69318
"""Metrics to assess performance on classification task given class 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.gramf...
mit