repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
igoumiri/pyMST | adhoc/adhoc.py | 1 | 32438 | def pars_to_eq(pars, ip,
lmodel='alpha', pmodel='quadratic', beta=0.0, n=101, ret='all',
corr='cyl', d=0.01, a=0.52, Ra=1.50):
"""Input lambda model
pars=parameters, ip=ip in A, lmodel=lambda-model type,
ret=what to return, pmodel=pressure-model type, beta=beta_poloidal,
and n=number of radial p... | mit |
yannickmartin/wellFARE | wellfare/curves/Curve.py | 1 | 34362 | """
pycurves
---------
This module implements the Curve class. Curve instances store two
arrays `curve.x` and `curve.y` which represent a function y=f(x). Many
operations on the curves which generally require a few lines of code
can be done in one line using the methods of Curve instances:
Features
~~~~~~~~~
Here i... | lgpl-3.0 |
briney/abcloud | abcloud/utils/cluster.py | 1 | 82698 | #!/usr/bin/env python
# filename: cluster.py
#
# Copyright (c) 2015 Bryan Briney
# License: The MIT license (http://opensource.org/licenses/MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to deal in the Softw... | mit |
lukaltair/MontAGN_V2 | montagn/montagn_launch.py | 1 | 37476 | # -*- coding: utf-8 -*-
import numpy as np
import scipy.integrate as sci
import scipy.optimize as opt
import time
import tarfile
import os
import csv
from montagn_utils_Lu import *
from montagn_classes import *
from montagn_polar import *
import matplotlib.pyplot as plt
from gui_random import *
######################... | gpl-3.0 |
MobleyLab/SAMPL6 | host_guest/Analysis/Scripts/analyze_hostguest.py | 1 | 81381 | #!/usr/bin/env python
# =============================================================================
# GLOBAL IMPORTS
# =============================================================================
import os
import copy
import collections
import pickle
import numpy as np
import pandas as pd
import seaborn as sns
fr... | mit |
harisbal/pandas | pandas/core/arrays/sparse.py | 1 | 63574 | """
SparseArray data structure
"""
from __future__ import division
import numbers
import operator
import re
import warnings
import numpy as np
from pandas._libs import index as libindex, lib
import pandas._libs.sparse as splib
from pandas._libs.sparse import BlockIndex, IntIndex
from pandas._libs.tslibs import NaT
i... | bsd-3-clause |
flightgong/scikit-learn | sklearn/cross_validation.py | 1 | 55943 | """
The :mod:`sklearn.cross_validation` module includes utilities for cross-
validation and performance evaluation.
"""
# 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 |
ljwolf/pysal | pysal/esda/smoothing.py | 1 | 71324 | from __future__ import division
"""
Apply smoothing to rate computation
[Longer Description]
Author(s):
Myunghwa Hwang mhwang4@gmail.com
David Folch dfolch@asu.edu
Luc Anselin luc.anselin@asu.edu
Serge Rey srey@asu.edu
"""
__author__ = "Myunghwa Hwang <mhwang4@gmail.com>, David Folch <dfolch@asu.edu... | bsd-3-clause |
wolfier/incubator-airflow | airflow/contrib/hooks/bigquery_hook.py | 1 | 63825 | # -*- 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 |
jealous/stockstats | stockstats.py | 1 | 36065 | # coding=utf-8
# Copyright (c) 2016, Cedric Zhuang
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, thi... | bsd-3-clause |
lukeshingles/artistools | artistools/spectra/spectra.py | 1 | 47276 | #!/usr/bin/env python3
"""Artistools - spectra related functions."""
import math
import multiprocessing
from collections import namedtuple
from functools import lru_cache
from functools import partial
from pathlib import Path
import os
import matplotlib as mpl
import matplotlib.pyplot as plt # needed to get the color... | mit |
kwentz10/Photosynthesis_Optimization_Modeling | Trait_Based_Photo_Model_InterSpecificVariation.py | 1 | 31924 | # -*- coding: utf-8 -*-
"""
Photosynthesis and Stomatal Conductance Model
Created 9/27/2016
Katherine Wentz
This is a program that runs photosynthesis and
stomatal conductance models given changes in leaf-
level traits.
The end product is graphs of NUE vs. WUE.
Update: I am going to run the model for plants with ... | mit |
e-gun/HipparchiaServer | server/_deprecated/experimental/tensorflowvectors.py | 1 | 44534 | # -*- coding: utf-8 -*-
"""
HipparchiaServer: an interface to a database of Greek and Latin texts
Copyright: E Gunderson 2016-21
License: GNU GENERAL PUBLIC LICENSE 3
(see LICENSE in the top level directory of the distribution)
"""
import collections
import locale
import math
import os
import random
from multiproc... | gpl-3.0 |
cython-testbed/pandas | pandas/tests/io/test_excel.py | 1 | 97698 | # pylint: disable=E1101
import os
import warnings
from datetime import datetime, date, time, timedelta
from distutils.version import LooseVersion
from functools import partial
from warnings import catch_warnings
from collections import OrderedDict
import numpy as np
import pytest
from numpy import nan
import pandas a... | bsd-3-clause |
mitschabaude/nanopores | scripts/wei/run_wei.py | 1 | 33444 | # -*- coding: utf-8 -*
# (c) 2017 Gregor Mitscha-Baude
import os.path
import numpy as np
import nanopores.plots as plots
import matplotlib
matplotlib.use('Agg')
# from matplotlib import rcParams, rc
# rcParams.update({
# "font.size" : 7,
# "axes.titlesize" : 7,
# #"font.family" : "sans-serif",
# #"font.... | mit |
TomAugspurger/pandas | pandas/io/formats/format.py | 1 | 63335 | """
Internal module for formatting output data in csv, html,
and latex files. This module also applies to display formatting.
"""
from contextlib import contextmanager
from datetime import tzinfo
import decimal
from functools import partial
from io import StringIO
import math
import re
from shutil import get_terminal_... | bsd-3-clause |
winklerand/pandas | pandas/tests/test_categorical.py | 1 | 191602 | # -*- coding: utf-8 -*-
# pylint: disable=E1101,E1103,W0232
from warnings import catch_warnings
import pytest
import sys
from datetime import datetime
from distutils.version import LooseVersion
import numpy as np
from pandas.core.dtypes.dtypes import CategoricalDtype
from pandas.core.dtypes.common import (
is_ca... | bsd-3-clause |
huzq/scikit-learn | sklearn/manifold/_t_sne.py | 1 | 36870 | # 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 |
datapythonista/pandas | pandas/tests/groupby/test_function.py | 1 | 39032 | import builtins
from io import StringIO
import numpy as np
import pytest
from pandas._libs.tslibs import iNaT
from pandas.errors import UnsupportedFunctionCall
import pandas as pd
from pandas import (
DataFrame,
Index,
MultiIndex,
Series,
Timestamp,
date_range,
)
import pandas._testing as tm
... | bsd-3-clause |
chunweiyuan/xarray | xarray/tests/test_dask.py | 1 | 32363 | import pickle
from collections import OrderedDict
from contextlib import suppress
from distutils.version import LooseVersion
from textwrap import dedent
import numpy as np
import pandas as pd
import pytest
import xarray as xr
import xarray.ufuncs as xu
from xarray import DataArray, Dataset, Variable
from xarray.tests... | apache-2.0 |
esturdivant-usgs/plover_transect_extraction | TransectExtraction/TE_functions_arcpy.py | 1 | 67739 | # -*- coding: utf-8 -*-
# Transect Extraction module
# possible categories: preprocess, create, calculate
import arcpy
import time
import os
# import pythonaddins
import collections
import pandas as pd
import numpy as np
from operator import add
import sys
if sys.platform == 'win32':
script_path = r"\\Mac\Home\Gi... | gpl-3.0 |
sztal/xlsxpandas | xlsxpandas/elements.py | 1 | 35614 | # -*- coding: utf-8 -*-
"""Drawing element classes"""
# Imported modules ------------------------------------------------------------
# Full imports ---
import sys
import re
import yaml
import pandas as pd
# Partial imports ----
from collections import OrderedDict
from xlsxwriter.utility import xl_rowcol_to_cell
fro... | mit |
OzFlux/PyFluxPro | scripts/pfp_top_level.py | 1 | 42364 | # standard modules
import logging
import os
import sys
import traceback
# 3rd party modules
import netCDF4
import matplotlib
from PyQt5 import QtWidgets
# PFP modules
from scripts import pfp_batch
from scripts import pfp_clim
from scripts import pfp_compliance
from scripts import pfp_cpd_barr
from scripts import pfp_cp... | bsd-3-clause |
TNT-Samuel/Coding-Projects | DNS Server/Source - Copy/Lib/site-packages/dask/dataframe/io/parquet.py | 2 | 41822 | from __future__ import absolute_import, division, print_function
import re
import copy
import json
import warnings
import os
from distutils.version import LooseVersion
import numpy as np
import pandas as pd
from ..core import DataFrame, Series
from ..utils import (clear_known_categories, strip_unknown_categories,
... | gpl-3.0 |
TomAugspurger/pandas | pandas/_testing.py | 1 | 84555 | import bz2
from collections import Counter
from contextlib import contextmanager
from datetime import datetime
from functools import wraps
import gzip
import os
from shutil import rmtree
import string
import tempfile
from typing import Any, Callable, List, Optional, Type, Union, cast
import warnings
import zipfile
imp... | bsd-3-clause |
ajbouh/tfi | src/tfi/driver/msp/root.py | 1 | 40845 | import os
if 'CXX' in os.environ:
os.environ['CC'] = os.environ['CXX']
import json
from datetime import timedelta
import numpy as np
import types
import inspect
import sys
def eprint(*a):
print(*a, file=sys.stderr)
class Proto:
# def __new__(self, proto, *args, **kw):
# return super(Proto, self).__new__(se... | mit |
pcmoritz/arrow | python/pyarrow/tests/test_plasma.py | 1 | 42481 | # 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 |
drensin/Remixatron | Remixatron.py | 1 | 40135 | """ Classes for remixing audio files.
(c) 2017 - Dave Rensin - dave@rensin.com
This module contains classes for remixing audio files. It started
as an attempt to re-create the amazing Infinite Jukebox (http://www.infinitejuke.com)
created by Paul Lamere of Echo Nest.
The InfiniteJukebox class can do it's processing i... | apache-2.0 |
benbovy/xarray-simlab | xsimlab/xr_accessor.py | 1 | 34831 | """
xarray extensions (accessors).
"""
from collections import defaultdict
import warnings
import attr
import numpy as np
from xarray import as_variable, Dataset, register_dataset_accessor
from .drivers import XarraySimulationDriver
from .model import get_model_variables, Model
from .utils import Frozen, variables_d... | bsd-3-clause |
vortex-ape/scikit-learn | sklearn/externals/joblib/parallel.py | 5 | 42769 | """
Helpers for embarrassingly parallel code.
"""
# Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org >
# Copyright: 2010, Gael Varoquaux
# License: BSD 3 clause
from __future__ import division
import os
import sys
from math import sqrt
import functools
import time
import inspect
import threading
impo... | bsd-3-clause |
alexandrebarachant/mne-python | mne/viz/topomap.py | 2 | 88400 | """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 |
shuangshuangwang/spark | python/pyspark/sql/session.py | 3 | 31111 | #
# 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 |
davidovitch/freeyaw-ojf-wt-tests | HawcPy.py | 1 | 85636 | # -*- coding: utf-8 -*-
"""
Author: David Verelst
"""
from __future__ import division # always devide as floats
__author__ = 'David Verelst'
__license__ = 'GPL'
__version__ = '0.5'
from time import time
import scipy
import array
import numpy as np
import os
import logging
import copy
from matplotlib.backends.backe... | gpl-3.0 |
astrodsg/latbin | latbin/lattice.py | 1 | 33958 | # Licensed under a 3-clause BSD style license - see LICENSE
# Standard Library
from collections import Iterable
import re
import io
import os
from copy import copy
# 3rd Party
import numpy as np
import pandas as pd
import pandas.core
#vector quantization
import scipy.cluster.vq as vq
# Internal
from latbin.point_in... | bsd-3-clause |
drewokane/xray | xarray/core/dataset.py | 1 | 82971 | import functools
import warnings
from collections import Mapping
from numbers import Number
import numpy as np
import pandas as pd
from . import ops
from . import utils
from . import common
from . import groupby
from . import indexing
from . import alignment
from . import formatting
from .. import conventions
from .a... | apache-2.0 |
lewisodriscoll/sasview | src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py | 1 | 72893 | """
Generic Scattering panel.
This module relies on guiframe manager.
"""
from __future__ import print_function
import wx
import sys
import os
import numpy as np
#import math
import wx.aui as aui
#import wx.lib.agw.aui as aui
import logging
import time
import matplotlib
matplotlib.interactive(False)
#Use the WxAgg ba... | bsd-3-clause |
rlabbe/filterpy | filterpy/kalman/tests/ukf2.py | 1 | 47471 | # -*- coding: utf-8 -*-
"""Copyright 2015 Roger R Labbe Jr.
FilterPy library.
http://github.com/rlabbe/filterpy
Documentation at:
https://filterpy.readthedocs.org
Supporting book at:
https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python
This is licensed under an MIT license. See the readme.MD file
for mo... | mit |
kmike/scikit-learn | sklearn/ensemble/forest.py | 2 | 51913 | """Forest of trees-based ensemble methods
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls the ... | bsd-3-clause |
alainiamburg/sniffROM | sniffROM.py | 1 | 44114 | import argparse, csv, sys
import matplotlib
#matplotlib.use('Agg') # This is needed if no X windows server
#from matplotlib import pyplot
import matplotlib.pyplot as plt
from matplotlib import ticker
### Logic export csv file formats:
## SPI ##
# Time [s],Packet ID,MOSI,MISO
# 0.21347662,0,0x05,0xFF
## I2C ##
# Tim... | gpl-3.0 |
Xeralux/tensorflow | tensorflow/contrib/metrics/python/ops/metric_ops.py | 1 | 167425 | # Copyright 2016 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 |
fumitoh/modelx | modelx/core/model.py | 1 | 60174 | # 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 |
nmayorov/scipy | scipy/signal/spectral.py | 2 | 73753 | """Tools for spectral analysis.
"""
import numpy as np
from scipy import fft as sp_fft
from . import signaltools
from .windows import get_window
from ._spectral import _lombscargle
from ._arraytools import const_ext, even_ext, odd_ext, zero_ext
import warnings
__all__ = ['periodogram', 'welch', 'lombscargle', 'csd',... | bsd-3-clause |
philharmonic/philharmonic | philharmonic/scheduler/evaluator.py | 1 | 32112 | """Evaluates a simulation, based on the cloud, environment and the actually
performed schedule of actions.
"""
import math
import pandas as pd
import numpy as np
import philharmonic as ph
from philharmonic.logger import *
from philharmonic import conf
def print_history(cloud, environment, schedule):
"""Print t... | gpl-3.0 |
StingraySoftware/HENDRICS | hendrics/efsearch.py | 1 | 51396 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Search for pulsars."""
import warnings
import os
import argparse
import copy
import numpy as np
from astropy import log
from astropy.table import Table
from astropy.logger import AstropyUserWarning
from .io import get_file_type
from stingray.pulse.sea... | bsd-3-clause |
jbalm/ActuarialCashFlowModel | Main.py | 1 | 65512 | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 25 22:57:32 2016
@author: Quang Dien DUONG
"""
from Asset_data0 import Asset_data0
from Liabilities_data0 import Liabilities_data_m, Liabilities_data0
from ALM_v1 import ALM
#from ALM_v2_2 import ALM
from ESG_RN import ESG_RN
from Technical_Provision import Technical_Prov... | gpl-3.0 |
seckcoder/lang-learn | python/sklearn/sklearn/datasets/samples_generator.py | 1 | 40691 | """
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe
# License: BSD 3 clause
from itertools import product
import numbers
import numpy as np
from scipy import linalg
from ..utils import array2d, check_random_state
from ..utils i... | unlicense |
DiCarloLab-Delft/PycQED_py3 | pycqed/simulations/spectral_tomography.py | 1 | 36820 | from pycqed.measurement import measurement_control as mc
import adaptive
from pycqed.instrument_drivers.meta_instrument.LutMans import flux_lutman as flm
from pycqed.instrument_drivers.virtual_instruments import noise_parameters_CZ_new as npCZ
from pycqed.simulations import cz_superoperator_simulation_new_functions a... | mit |
justincely/rolodex | cos_monitoring/database/database.py | 1 | 33812 | """ Module to populate and interact with the COSMoS database.
.. warning ::
The functions contained in this module require a configuration
file to run. This file gives the connectring string into the
database, and is needed to run.
"""
from __future__ import print_function, absolute_import, division
fr... | bsd-3-clause |
parastuffs/metis_unicorn | tmp/script/phoney.py | 1 | 42083 | """
PHONEY [Pronounce 'poney'], Partitioning of Hypergraph Obviously Not EasY
Want to use it? Then check the 'HMETIS_PATH' and 'dirs' variables.
"""
"""
TODO
> Doc
> Change the ID of the clusters so that it begins at 1 instead of 0.
"""
import math
from subprocess import call
import copy
import matplotlib.pyplot as ... | gpl-3.0 |
ARudiuk/mne-python | mne/preprocessing/maxwell.py | 1 | 82854 | # -*- coding: utf-8 -*-
# Authors: Mark Wronkiewicz <wronk.mark@gmail.com>
# Eric Larson <larson.eric.d@gmail.com>
# Jussi Nurminen <jnu@iki.fi>
# License: BSD (3-clause)
from math import factorial
from os import path as op
import numpy as np
from scipy import linalg
from .. import __version__
fr... | bsd-3-clause |
jskDr/jamespy_py3 | repository/_jgrid_r0.py | 1 | 43321 | """
grid search codes for machine learning
"""
from sklearn import cross_validation, cross_validation, grid_search, linear_model, svm, metrics
import numpy as np
import pandas as pd
from operator import itemgetter
import jutil
import j3x.jpyx
from jsklearn import binary_model
def gs_Lasso( xM, yV, alphas_log = (-1, ... | mit |
VirusTotal/msticpy | msticpy/common/keyvault_client.py | 1 | 34317 | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Keyvaul... | mit |
TzivakiM/LocationFactorsCode | deposition.py | 1 | 30850 | # deposited nuclides
import math
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import os
import sys
import csv
from cycler import cycler
#Plot settings for black and white. If color is wanted, comment out!
#monochrome = (cycler('color', ['k']) * cycler('marker', ['', '.']... | gpl-3.0 |
mengyun1993/RNN-binary | rnn12-new.py | 1 | 30238 | """ Vanilla RNN
@author Graham Taylor
"""
import numpy as np
import theano
import theano.tensor as T
from sklearn.base import BaseEstimator
import logging
import time
import os
import datetime
import pickle as pickle
import math
import matplotlib.pyplot as plt
plt.ion()
mode = theano.Mode(linker='cvm')
#mode = '... | bsd-3-clause |
karimbahgat/PythonGis | pythongis/renderer.py | 1 | 96398 |
import os
import math
import random
import itertools
import pyagg, pyagg.legend
import PIL, PIL.Image, PIL.ImageChops, PIL.ImageMath, PIL.ImageDraw, PIL.ImagePath
import colour
import shapely, shapely.geometry
from . import classypie as cp
import pycrs
from .vector.data import VectorData
from .vector.loader import... | mit |
basnijholt/holoviews | holoviews/tests/plotting/bokeh/testelementplot.py | 1 | 37258 | from unittest import SkipTest
from collections import OrderedDict
import numpy as np
from bokeh.core.properties import value
from holoviews.core import Dimension, DynamicMap, NdOverlay
from holoviews.element import Curve, Image, Scatter, Labels
from holoviews.streams import Stream, PointDraw
from holoviews.plotting.u... | bsd-3-clause |
xcompass/pandas-gbq | pandas_gbq/tests/test_gbq.py | 1 | 62148 | import pytest
import re
from datetime import datetime
import pytz
from time import sleep
import os
from random import randint
import logging
import numpy as np
from distutils.version import StrictVersion
from pandas import compat
from pandas.compat import u, range
from pandas import NaT, DataFrame
from pandas_gbq i... | bsd-3-clause |
yavalvas/yav_com | build/matplotlib/lib/matplotlib/backends/backend_tkagg.py | 1 | 31746 | # Todd Miller jmiller@stsci.edu
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import tkinter as Tk
from six.moves import tkinter_filedialog as FileDialog
import os, sys, math
import os.path
# Paint image to Tk photo blitter ex... | mit |
volodymyrss/3ML | threeML/plugins/OGIP/response.py | 1 | 41089 | import astropy.io.fits as pyfits
import numpy as np
import warnings
import matplotlib.cm as cm
from matplotlib.colors import SymLogNorm
import matplotlib.pyplot as plt
from operator import itemgetter, attrgetter
import copy
import astropy.units as u
from threeML.io.file_utils import file_existing_and_readable, saniti... | bsd-3-clause |
BiaDarkia/scikit-learn | sklearn/mixture/tests/test_gaussian_mixture.py | 3 | 40201 | # Author: Wei Xue <xuewei4d@gmail.com>
# Thierry Guillemot <thierry.guillemot.work@gmail.com>
# License: BSD 3 clause
import sys
import warnings
import numpy as np
from scipy import stats, linalg
from sklearn.covariance import EmpiricalCovariance
from sklearn.datasets.samples_generator import make_spd_matri... | bsd-3-clause |
ajheaps/cfplot | cfplot/cfplot.py | 1 | 336210 | """
Climate contour/vector plots using cf-python, matplotlib and cartopy.
Andy Heaps NCAS-CMS April 2021
"""
import numpy as np
import subprocess
from scipy import interpolate
import matplotlib
from copy import deepcopy
import os
import sys
import matplotlib.pyplot as plot
from matplotlib.collections import PolyCollect... | mit |
glgerard/MDBN | src/rbm.py | 1 | 35587 | """
Copyright (c) 2016 Gianluca Gerard
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute... | apache-2.0 |
uvchik/pvlib-python | pvlib/pvsystem.py | 1 | 77658 | """
The ``pvsystem`` module contains functions for modeling the output and
performance of PV modules and inverters.
"""
from __future__ import division
from collections import OrderedDict
import os
import io
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
import numpy ... | bsd-3-clause |
flightgong/scikit-learn | sklearn/tests/test_cross_validation.py | 1 | 36102 | """Test the cross_validation module"""
from __future__ import division
import warnings
import numpy as np
from scipy.sparse import coo_matrix
from scipy import stats
from sklearn.utils.testing import assert_true
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_almost_equal
from ... | bsd-3-clause |
anntzer/scikit-learn | sklearn/covariance/_robust_covariance.py | 2 | 32346 | """
Robust location and covariance estimators.
Here are implemented estimators that are resistant to outliers.
"""
# Author: Virgile Fritsch <virgile.fritsch@inria.fr>
#
# License: BSD 3 clause
import warnings
import numbers
import numpy as np
from scipy import linalg
from scipy.stats import chi2
from . import empi... | bsd-3-clause |
coursera-dl/coursera | coursera/api.py | 2 | 60036 | # vim: set fileencoding=utf8 :
"""
This module contains implementations of different APIs that are used by the
downloader.
"""
import os
import re
import json
import base64
import logging
import time
import requests
import urllib
from collections import namedtuple, OrderedDict
from six import iterkeys, iteritems
from... | lgpl-3.0 |
colettace/wnd-charm | wndcharm/FeatureSpacePredictionExperiment.py | 1 | 54198 | """
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 |
cpitclaudel/dBoost | graphics/utils/_multivariate.py | 1 | 69079 | #
# Author: Joris Vankerschaver 2013
#
from __future__ import division, print_function, absolute_import
import numpy as np
import scipy.linalg
from scipy.misc import doccer
from scipy.special import gammaln, psi, multigammaln
from ._util import check_random_state
__all__ = ['multivariate_normal', 'dirichlet', 'wisha... | gpl-3.0 |
sniemi/EuclidVisibleInstrument | analysis/analyseGroundFlatfields.py | 1 | 76238 | """
A simple script to analyse ground/lab flat fields.
"""
import matplotlib
#matplotlib.use('pdf')
matplotlib.rc('text', usetex=True)
matplotlib.rcParams['font.size'] = 17
matplotlib.rc('xtick', labelsize=14)
matplotlib.rc('axes', linewidth=1.1)
matplotlib.rcParams['legend.fontsize'] = 11
matplotlib.rcParams['legend.h... | bsd-2-clause |
hbhzwj/GAD | gad/Detector/StoDetector.py | 1 | 51810 | #!/usr/bin/env python
"""
This file contains all the stochastic detection techniques
"""
from __future__ import print_function, division, absolute_import
__author__ = "Jing Conan Wang"
__email__ = "wangjing@bu.edu"
__status__ = "Development"
import collections
import copy
import datetime
import os
import sys
from ..... | gpl-3.0 |
nmartensen/pandas | pandas/tests/indexes/common.py | 1 | 38181 | # -*- coding: utf-8 -*-
import pytest
from pandas import compat
from pandas.compat import PY3
import numpy as np
from pandas import (Series, Index, Float64Index, Int64Index, UInt64Index,
RangeIndex, MultiIndex, CategoricalIndex, DatetimeIndex,
TimedeltaIndex, PeriodIndex, Int... | bsd-3-clause |
evelynmitchell/smc | src/build.py | 1 | 54972 | #!/usr/bin/env python
###############################################################################
#
# SageMathCloud: A collaborative web-based interface to Sage, IPython, LaTeX and the Terminal.
#
# Copyright (C) 2014-2015, William Stein
#
# This program is free software: you can redistribute it and/or modify... | gpl-3.0 |
MapsPy/MapsPy | maps_analyze.py | 1 | 59880 | '''
Created on Nov 29, 2011
@author: Mirna Lerotic, 2nd Look Consulting
http://www.2ndlookconsulting.com/
Copyright (c) 2013, Stefan Vogt, Argonne National Laboratory
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the... | bsd-2-clause |
fsimkovic/cptbx | conkit/core/contactmap.py | 2 | 39928 | # coding=utf-8
#
# BSD 3-Clause License
#
# Copyright (c) 2016-19, University of Liverpool
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the abov... | gpl-3.0 |
boland1992/SeisSuite | build/lib.linux-x86_64-2.7/seissuite/ant/pscrosscorr.py | 1 | 148860 | #!/usr/bin/env python
"""
Module that contains classes holding cross-correlations and related
processing, such as frequency-time analysis (FTAN) to measure
dispersion curves.
"""
from seissuite.ant import pserrors, psutils, pstomo
import obspy.signal
try:
import obspy.io.xseed
except:
import obspy.xseed
... | gpl-3.0 |
rddy/lentil | lentil/est.py | 2 | 37901 | """
Module for estimating model parameters
@author Siddharth Reddy <sgr45@cornell.edu>
"""
from __future__ import division
from abc import abstractmethod
from collections import OrderedDict
import copy
import logging
import math
import time
from matplotlib import pyplot as plt
import numpy as np
from scipy import o... | apache-2.0 |
AntonelliLab/seqcap_processor | secapr/reference_assembly.py | 1 | 40365 | # encoding: utf-8
'''
Create new reference library and map raw reads against the library (reference-based assembly)
'''
#author: Tobias Andermann, tobias.andermann@bioenv.gu.se
import os
import sys
import re
import csv
import glob
import shutil
import argparse
import configparser
import subprocess
import pickle
impo... | mit |
nilsgrabbert/spark | python/pyspark/sql/tests.py | 1 | 124306 | # -*- 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 |
wmvanvliet/mne-python | mne/dipole.py | 1 | 57162 | # -*- coding: utf-8 -*-
"""Single-dipole functions and classes."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
#
# License: Simplified BSD
from copy import deepcopy
import functools
from functools import partial
import re
import numpy as np
from .cov ... | bsd-3-clause |
Jozhogg/iris | lib/iris/tests/test_analysis.py | 1 | 51515 | # (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris 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 3 of the License, or
# (at your option) any l... | lgpl-3.0 |
MTgeophysics/mtpy | mtpy/gui/occam1d_gui_qt5.py | 1 | 59895 | # -*- coding: utf-8 -*-
"""
Occam 1D GUI
-----------------
All encompassing ploting data, model and model response.
JP 2017
"""
#
# =============================================================================
# Imports
# =============================================================================
import os
import ... | gpl-3.0 |
cellnopt/cellnopt | cno/io/midas.py | 1 | 99034 | #
#-*- python -*-
#
# This file is part of the cellnopt package
#
# Copyright (c) 2014-2016 - EMBL-EBI
#
# File author(s): Thomas Cokelaer (cokelaer@ebi.ac.uk)
#
# Distributed under the GLPv3 License.
# See accompanying file LICENSE.txt or copy at
# http://www.gnu.org/licenses/gpl-3.0.html
#
# website: www.c... | bsd-2-clause |
trentino-sistemi/l4s | web/statistical_secret.py | 1 | 162827 | # This file is part of Lod4Stat.
#
# Copyright (C) 2014 Provincia autonoma di Trento
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your optio... | agpl-3.0 |
StructuralNeurobiologyLab/SyConn | syconn/handler/prediction_pts.py | 1 | 111354 | # SyConn-dev
# Copyright (c) 2016 Philipp J. Schubert
# All rights reserved
# import here, otherwise it might fail if it is imported after importing torch
# see https://github.com/pytorch/pytorch/issues/19739
try:
import open3d as o3d
except ImportError:
pass # for sphinx build
import collections
import funct... | gpl-2.0 |
NSLS-II/PyXRF | pyxrf/model/draw_image_rgb.py | 1 | 31070 | from __future__ import absolute_import, division, print_function
import numpy as np
import math
from functools import partial
from matplotlib.figure import Figure, Axes
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.ticker as mticker
from mpl_toolkits.axes_grid1.axes_rgb import... | bsd-3-clause |
s3h10r/iostat-plotter | iostat_plotter_article.py | 1 | 35638 | #!/usr/bin/python
#
# Simple data plotter for iostat output. Feb. 9, 2013
#
# Copyright Jeffrey B. Layton
#
# License: GNU GPL v2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
# Version 2, June 1991
#
# Copyright (C) 1989, 1991 Free Software Foundation, Inc.
# 51 Franklin Street, Fifth Floor, Boston, MA 02... | gpl-2.0 |
jmeyers314/batoid | batoid/optic.py | 1 | 63933 | from collections import OrderedDict
import numpy as np
from .coating import SimpleCoating
from .obscuration import ObscNegation, ObscCircle, ObscAnnulus
from .constants import globalCoordSys, vacuum
from .coordsys import CoordTransform
from .rayVector import concatenateRayVectors
from .utils import lazy_property
cl... | bsd-2-clause |
s0hvaperuna/Not-a-bot | cogs/botadmin.py | 1 | 30553 | import argparse
import asyncio
import contextlib
import functools
import inspect
import logging
import os
import pprint
import re
import shlex
import subprocess
import sys
import textwrap
import time
import traceback
import typing
from datetime import datetime
from enum import IntEnum
from importlib import reload, impo... | mit |
dieterich-lab/rp-bp | rpbp/analysis/rpbp_predictions/create_rpbp_predictions_report.py | 1 | 32174 | #! /usr/bin/env python3
import argparse
import itertools
import logging
import os
import shlex
import sys
import yaml
import pbio.misc.latex as latex
import pbio.misc.logging_utils as logging_utils
import pbio.misc.parallel as parallel
import pbio.misc.shell_utils as shell_utils
import pbio.misc.slurm as slurm
import... | mit |
depet/scikit-learn | sklearn/metrics/metrics.py | 1 | 78776 | # -*- coding: utf-8 -*-
"""Utilities to evaluate the predictive performance of models
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 <alexandr... | bsd-3-clause |
kohr-h/odl | odl/solvers/util/callback.py | 2 | 34726 | # Copyright 2014-2020 The ODL contributors
#
# This file is part of ODL.
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
"""Callback objects for per-iterate actions ... | mpl-2.0 |
nsalomonis/AltAnalyze | UI.py | 1 | 425374 | ###UI
#Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California
#Author Nathan Salomonis - nsalomonis@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 deal
#in the Software withou... | apache-2.0 |
chaluemwut/fbserver | venv/lib/python2.7/site-packages/sklearn/linear_model/stochastic_gradient.py | 1 | 42867 | # Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author)
# Mathieu Blondel (partial_fit support)
#
# License: BSD 3 clause
"""Classification and regression using Stochastic Gradient Descent (SGD)."""
import numpy as np
import scipy.sparse as sp
from abc import ABCMeta, abstractmethod
from ... | apache-2.0 |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/gaussian_process/gaussian_process.py | 1 | 34885 | # -*- coding: utf-8 -*-
# Author: Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# Licence: BSD 3 clause
from __future__ import print_function
import numpy as np
from scipy import linalg, optimize
from . import correlation_models as correlation
from . import r... | mit |
huzq/scikit-learn | sklearn/metrics/tests/test_pairwise.py | 1 | 49286 | from types import GeneratorType
import numpy as np
from numpy import linalg
from scipy.sparse import dok_matrix, csr_matrix, issparse
from scipy.spatial.distance import cosine, cityblock, minkowski, wminkowski
from scipy.spatial.distance import cdist, pdist, squareform
import pytest
from sklearn import config_conte... | bsd-3-clause |
jbernhard/hic-param-est-2017 | src/plots.py | 1 | 57047 | """
Generates plots / figures when run as a script.
Plot files are placed in the :file:`plots` directory.
By default, simply running ``python -m src.plots`` generates **ALL** plots,
which may not be desired. Instead, one can pass a list of plots to generate:
``python -m src.plots plot1 plot2 ...``. The full list of ... | mit |
waterponey/scikit-learn | sklearn/linear_model/coordinate_descent.py | 2 | 81995 | # 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 |
rgommers/scipy | scipy/stats/stats.py | 1 | 314698 | # Copyright 2002 Gary Strangman. All rights reserved
# Copyright 2002-2016 The SciPy Developers
#
# The original code from Gary Strangman was heavily adapted for
# use in SciPy by Travis Oliphant. The original code came with the
# following disclaimer:
#
# This software is provided "as-is". There are no expressed or... | bsd-3-clause |
NixaSoftware/CVis | venv/lib/python2.7/site-packages/pandas/tests/reshape/test_reshape.py | 1 | 43640 | # -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101
import pytest
from pandas import DataFrame, Series
import pandas as pd
from numpy import nan
import numpy as np
from pandas.util.testing import assert_frame_equal
from pandas.core.reshape.reshape import (
melt, lreshape, get_dummies, wide_to_long)
impor... | apache-2.0 |
teonlamont/mne-python | mne/channels/channels.py | 2 | 52659 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
# Andrew Dykstra <andrew.r.dykstra@gmail.com>
# Teon Brooks <teon.brooks@gmail.com>
#
# License: BSD (3-clause)
import os
... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.