text
stringlengths
8.04k
46.5k
import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import pandas as pd import numpy as np import datetime import webbrowser import argparse try: from .data_access import GetData from .utils import convert_date from .functions import convert_tim...
import json import os import random import xml.dom.minidom as xmldom import re import sys args = sys.argv if (len(args) < 2): sys.exit(1) path = args[1] if(path[-1:] == "/"): path = path[:-1] filename = path + "/command/3/stdout.txt" #filename = "D:/SVN/Ansible02/pargen-IIS/roles/stdout.txt" result = {} ap...
# Copyright 2020 The SODA Authors. # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright (c) 2014 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apac...
import logging import os import shutil from cluster_vcf_records import vcf_file_read from minos import dependencies, utils, vcf_file_split_deletions class Error (Exception): pass class MultiSamplePipeline: def __init__(self, ref_fasta, input_data_tsv, output_dir, max_alleles_per_...
"""Run QA model to detect triggers.""" from __future__ import absolute_import, division, print_function import argparse import collections from collections import Counter import copy import json import logging import math import os import random import time import re import string import sys from io import open impo...
""" Some functions internally use by SortingComparison. """ import numpy as np import pandas as pd from joblib import Parallel, delayed from scipy.optimize import linear_sum_assignment def count_matching_events(times1, times2, delta=10): """ Counts matching events. Parameters ---------- times1: ...
"""Module for common class between Archive, and result mesh""" import pyvista as pv from pyvista import _vtk as vtk from pyvista._vtk import VTK9 import numpy as np from ansys.mapdl.reader import _relaxmidside, _reader from ansys.mapdl.reader.misc import unique_rows from ansys.mapdl.reader.elements import ETYPE_MAP ...
""" Generate the information necessary to product the vrctst input files """ import os import autofile import automol import varecof_io from phydat import phycon from autorun import run_script from mechroutines.es.runner import scan from mechroutines.es._routines import _wfn as wfn from mechroutines.es._routines impor...
# built-in imports import math # 3rd-party imports from scipy.interpolate import interp1d from scipy import signal import numba import numpy as np def dio(x, fs, f0_floor=71, f0_ceil=800, channels_in_octave=2, target_fs=4000, frame_period=5, allowed_range=0.1): ''' F0 estimation by DIO consisting 3 steps ...
from __future__ import print_function import logging import numpy as np from . import Chem from . import action, data_utils, chemutils from .chemutils import get_mol, get_smiles, get_leaves SPECIAL_ATOMS = ['S', 'P'] def comp_mols(mol_a, mol_b): def clean_mol(mol): return chemutils.sanitize(chemutils.co...
# # Copyright (c) 2020-2021, NVIDIA CORPORATION. # # 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 ag...
import sys import time import os import fnmatch import math from argparse import ArgumentParser from argparse import RawTextHelpFormatter from datetime import datetime from datetime import timedelta from glob import glob # local imports import pyall import shapefile import geodetic # import statistics ###############...
""" Optimization class and related methods. """ import math import time import logging from multiprocessing import Pool import scipy.optimize as optimize import numpy as np from src import constants as C from src.data.toml_handling import make_sample_result from src.rendering import blender_control as B from src.ut...
# importing all required modules import time from tkinter import * import tkinter as tk from tkinter import ttk from tkinter import messagebox from tkinter.messagebox import * from tkinter.filedialog import * from tkinter.simpledialog import * from tkinter.font import Font, families from tkinter.colorchooser import ask...
# Copyright (c) 2017, Vienna University of Technology (TU Wien), Department # of Geodesy and Geoinformation (GEO). # All rights reserved. # # All information contained herein is, and remains the property of Vienna # University of Technology (TU Wien), Department of Geodesy and Geoinformation # (GEO). The intellectual a...
# PAYST subroutines from __future__ import print_function, division import pyopencl as cl import numpy as np from time import time import matplotlib.pyplot as plt import sys, subprocess def extendarr(id2mass, mag, mempct, memchar, match): id2mass.append('00000000+0000000') mempct.append(-1) memchar.append('U') mat...
""" Code to write instance catalogs for phosim and imsim using the gcr-catalogs galaxy catalogs. """ from __future__ import with_statement import os import copy import subprocess from collections import namedtuple import gzip import numpy as np import h5py from lsst.utils import getPackageDir from lsst.s...
""" pkgcore-based QA utility for ebuild repos pkgcheck is a QA utility based on **pkgcore**\\(5) that supports scanning ebuild repositories for various issues. """ import argparse import os import sys import textwrap from collections import defaultdict from contextlib import ExitStack from functools import partial fr...
#!/bin/env python # -*- coding: utf-8 -*- import os import sys import struct import math import socket from base64 import b64decode, b64encode from hashlib import sha256 from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives.asymmetric import dsa from cryptography.hazmat.primit...
# ****************************************************** ## Copyright 2019, PBL Netherlands Environmental Assessment Agency and Utrecht University. ## Reuse permitted under Gnu Public License, GPL v3. # ****************************************************** import general_path try: # Import general python modules ...
from utilities import * import scanpy as sc import numpy as np import pandas as pd from anytree import Node,RenderTree from anytree.exporter import DotExporter from graphviz import render from tqdm import tqdm from sklearn.decomposition import PCA,TruncatedSVD import umap import matplotlib.pyplot as plt import matplot...
import sys, os, random, datetime, mimetypes, pygame, json from numbers import Number from functools import partial from time import time as get_time, gmtime, strftime from pygame.locals import * from .Globals import Globals from .utils import load_module, register_cell, register_keydown, rand_maze, rand_pos, rand_color...
# Copyright 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Classes and Methods related to invoking a test.""" import logging import os import pickle import signal import sys import tempfile import threading im...
import iwbi import inguma import json, re, traceback, csv, sys, time, requests, validators, os from pathlib import Path from urllib.parse import urlparse, urlunparse import urllib.request opener = urllib.request.build_opener() opener.addheaders = [('Accept', 'application/vnd.crossref.unixsd+xml')] def update_mapping(g...
# -*- coding: utf-8 -*- from itertools import groupby from math import ceil import matplotlib.projections as proj import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Patch from matplotlib.patches import Rectangle from matplotlib.ticker import FixedLocator from matplotlib.ticker import Max...
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Run inference on images, videos, directories, streams, etc. Usage: $ python path/to/detect.py --source path/to/img.jpg --weights yolov5s.pt --img 640 """ from algorithm.planner.main import Runner from PiTransmitter import sendData,getAndroidData from config import WEI...
# # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # """ Classic cart-pole system implemented by <NAME> et al. Copied from http://incompleteideas.net/sutton/book/code/pole.c permalink: https...
#!/usr/bin/env python3 from __future__ import print_function import argparse import os.path import re import shutil from signal import * import tempfile import sys import subprocess from .feature import Feature, ResGene, Mutation, ResMutation from .abclassdef import ABClassDefinition def eprint(*args, **kwargs): ...
""" @author: <NAME> @contact: <EMAIL> """ import configparser as cp import copy import logging import multiprocessing as mp import numpy as np # type: ignore import os import pandas as pd # type: ignore from pathlib import Path import shutil from tqdm import tqdm # type: ignore from typing import Dict, List, Option...
from model.layers import CATS, CATS_Scaled, CATS_QueryScaler, CATS_manhattan from model.models import CATSSimilarityModel from model.sent_models import CATSSentenceModel from data.utils import InputCATSDatasetBuilder, read_art_qrels, InputSentenceCATSDatasetBuilder import torch torch.manual_seed(42) import torch.nn as ...
"""Analyze waterfloods with capacitance-resistance models. # noqa: D401,D400 Classes ------- CRM : standard capacitance resistance modeling CrmCompensated : including pressure Methods ------- q_primary : primary production q_CRM_perpair : production due to injection (injector-producer pairs) q_CRM_perproducer : produ...
""" Create a class object for a park. - runs that have been analyzed are tracked so it doesn't re-analyze all runs when a new one is added to directory - breaks runs down into segments based on identified junctions. Identified junctions are tracked. Segments are tracked - Every time a new junction is identified every s...
""" Copyright (c) College of Mechatronics and Control Engineering, Shenzhen University. All rights reserved. Description : train a ddpg model for driving decision. Author:<NAME> """ import sys, os, glob, threading, math, time import tensorflow as tf import cv2 import RL.DDPG.ddpg_utils as ddpg import RL.rl_utils as ...
import torch # import sub_cuda import cross_prod_cuda, cross_subtract_cuda, sub_norm_cuda_half_paral #sub_norm_cuda sub_norm_cuda_half from torch.autograd import Function import torch.nn.functional as F import torch.nn as nn import numpy as np from dataloader import pose_from_euler_t_Tensor class SubNormFunction(F...
"""`BiphasicAxonMapModel`""" from typing import Type import numpy as np import sys from . import AxonMapModel, AxonMapSpatial, TemporalModel, Model from ..implants import ProsthesisSystem, ElectrodeArray from ..stimuli import BiphasicPulseTrain, Stimulus from ..percepts import Percept from ..utils import FreezeError f...
"""Philips Air Purifier & Humidifier""" import asyncio import logging from datetime import timedelta from typing import ( Any, Callable, Dict, List, Optional, Union, ) from homeassistant.components.fan import ( FanEntity, PLATFORM_SCHEMA, SUPPORT_PRESET_MODE, ) from homeassistant.co...
import svgling import numpy as np from tqdm import tqdm from copy import deepcopy from binarization import Binarizer, BinaryDependencyTree from dependency_parse import dependency_parse from util import * scalar_comparative = { "taller": ["+", "-"], "lower": ["-", "+"], "higher": ["-", "+"], "faster": ...
from flask import Flask from flask import render_template from flask import Blueprint from flask import flash from flask import request from flask import redirect from flask import jsonify from flask import Markup from flask import g from flask import session import functools import json import hashlib import logging ...
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import copy from typing import Any, Dict, Iterable, List, Set, Tuple, Union from dace import dtypes, properties, registry, subsets, symbolic from dace.sdfg import propagation, utils, graph from dace.codegen.targets import fpga from dace.transf...
#!/usr/bin/python3 import config import httplib2 import os import sys import time import arrow from datetime import datetime from datetime import timedelta from dateutil import tz import requests from bs4 import BeautifulSoup import json import zulu from chrome.Logon import auth from apiclient.disc...
""" Mask R-CNN Display and Visualization Functions. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE_MATTERPORT for details) Written by <NAME> Copyright (c) 2021 Skinet Team Licensed under the MIT License (see LICENSE for details) Updated/Modified by <NAME> """ import os import sys imp...
import logging import base64 import traceback import io import sys import random import datetime import imghdr import cairosvg import magic import imagehash from base64 import binascii from urllib.parse import urljoin, urlparse from copy import deepcopy from bs4 import BeautifulSoup from PIL import ImageFile, Image ...
""" Handles caching downloaded data. """ import collections import json import logging import operator import os import cPickle as pickle import sys import time import cv2 import numpy as np import images import utils logger = logging.getLogger(__name__) class Cache(object): """ Defines an interface for cache...
#!/usr/bin/env python # coding: utf-8 import re import uuid import inspect from io import StringIO from datetime import date, time, datetime, timezone, timedelta from collections import abc from typing import List, Dict, Any, TextIO, Type, Union, Tuple, Iterable, Mapping """ JSON tools for format, encode and deco...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # This file is a part of ADK library. # Copyright (c) 2012-2015, <NAME> <<EMAIL>> # All rights reserved. # See LICENSE file for copyright details. ''' Tool for analyzing captured USB traffic oscillograms. It accepts CSV file with the data which can be optionally zip-com...
import json import requests import sys import geopy.distance import datetime from collections import namedtuple from pyproj import Proj, transform from rdflib import Graph from rdflib.plugins.sparql import prepareQuery from rdflib.plugins.sparql.results.jsonresults import JSONResult from config import Constan...
# TODO: Rewrite in pycord import discord from discord.ext import commands from dislash import ActionRow, Button, ButtonStyle, SelectMenu, SelectOption import asyncio import random import json from datetime import datetime import os with open('./ext/brawl.json', 'r') as f: data = json.load(f) class Brawl(commands....
import time, os, json, requests import pickle import xml.etree.ElementTree from farmware_tools import log from farmware_tools import send_celery_script as send import CeleryPy as cp from os.path import dirname, join ##List of functions and classes for ease of use """ SECONDARY FUNCTION CLASSES: PlantType(name, lightN...
# Copyright 2020 The HuggingFace Team. 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 applicabl...
from contextlib import contextmanager from collections import OrderedDict from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta from functools import wraps, reduce import hashlib from hanzo import warctools import itertools import json import logging from nacl import encoding from na...
# -*- coding: utf-8 -*- """ Created on Sun Jan 26 21:55:05 2020 @author: MAGED """ import click as ck import numpy as np import cmath as cm import cvxpy as cp from itertools import chain # ============================================================================= # ==================================...
import argparse import os import sys import copy import numpy as np import pandas as pd # import pickle from datetime import datetime import gc if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("Please declare the environment variable...
import sys sys.path.append("../../src/") sys.path.append("../../scripts/") import site import sys import pandas as pd import sys import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib import cm # import mshr import dolfin from dolfin import MPI import os import sympy import numpy as ...
from tkinter import * from tkinter import ttk from tkinter.ttk import Notebook from tkinter import messagebox import random from googletrans import Translator import os from gtts import gTTS from playsound import playsound import csv from threading import Thread ############### ''' If you have Python3 Open your termin...
import time import torch import numpy as np import cvxpy as cp def calc_full_cp_matrix_indirect(opt_vars, weights, x0, y0, yp, eps, shapes, in_min, in_max): gamma, lbdas, nus, etas, s = opt_vars Ws, bs = weights x_min = np.clip(x0 - eps, a_min=in_min, a_max=in_max) x_max = np.clip(x0 + eps, ...
# Copyright (c) 2020, The Linux Foundation. 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, this list of cond...
#!/usr/bin/env python3 import pyautogui import xlwings import time import re import os import sys from datetime import date from multiprocessing import Pool, Process, Queue, current_process import queue import tqdm from PIL import Image, ImageGrab import pytesseract import numpy import screenshots pytesseract.pyte...
# <NAME>#7175 qui a réalisé toute la partie sur l'extraction de la couleur dominante de la photo de profil import asyncio import os from copy import copy import logging import random import webcolors from colorthief import ColorThief import discord from discord.utils import get as discord_get from redbot.core import C...
# -*-coding:utf-8-*- #!/usr/bin/env python # Copyright (c) 2017 NIST # All Rights Reserved. # Author: Zhaohuie import configparser import copy import json import logging import logging.config import os import os.path import re import shutil import subprocess import uuid import math from multiprocessing import Process ...
# ------------------------------------------------------------------------------- # Copyright IBM Corp. 2018 # # 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...
# # $Id: abstraction.py 740 2010-05-20 13:54:15Z hat $ # from automata import product, collection, common, data_structure, \ exceptions # {{{ def order_automata(aut_list): def order_automata(aut_list): """ Use a heuristic to order automata for reduced memory and CPU usage during comput...
import typing from dataclasses import asdict from pathlib import Path from pprint import pprint from marshmallow import Schema, ValidationError, missing, post_load, validate, validates, validates_schema from bioimageio.spec import fields, raw_nodes from bioimageio.spec.exceptions import PyBioValidationException cla...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
#!/usr/bin/python from movr import MovR from generators import MovRGenerator import argparse import sys import os import time import datetime import random import math import signal import threading import re import logging from faker import Faker from models import User, Vehicle, Ride, VehicleLocationHistory, PromoCo...
#! /usr/bin/env python3 import argparse from collections import Counter from concurrent.futures import ThreadPoolExecutor import datetime as dt import json import os import re import shutil import sys import traceback from typing import Generator, Iterable import boto3 cfn = boto3.resource("cloudformation") sfn = bo...
# Copyright 2020 Curtin University # # 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 writi...
''' ==================================================================== Copyright (c) 2018 <NAME>. All rights reserved. This software is licensed as described in the file LICENSE.txt, which you should have received as part of this distribution. ==================================================================...
import pytest from pytest import approx import numpy as np from probability2 import Distribution from probability2.empirical_distributions import FrequencyTable from probability2.empirical_distributions import EmpiricalDistribution from tests.helpers import compare def test_empty_frequency_table(): freq_table = F...
""" # @Description: Plot utilities for face finding applications """ import os import matplotlib.pyplot as plt import numpy as np from matplotlib.collections import LineCollection as lc from matplotlib.colors import colorConverter from mpl_toolkits.mplot3d.art3d import Line3DCollection as lc3d from scipy.interpolate i...
#!/usr/bin/python3.6 import ROC1 import numpy as np np.set_printoptions(threshold=np.inf) np.seterr(all="ignore") from multiprocessing import Pool from scipy.interpolate import interp1d from scipy.stats import norm try: import matplotlib matplotlib.use('QT4Agg') import matplotlib.pyplot as plt font: dict = {'size' ...
#!/usr/bin/env python # -*- coding: utf-8 -*- r"""file utils""" from __future__ import print_function, unicode_literals, division, absolute_import from future import standard_library standard_library.install_aliases() # noqa from builtins import (bytes, dict, int, list, object, range, str, # noqa ascii, chr, hex,...
# Copyright 2017 Tufin Technologies Security Suite. 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...
""" For Windows OS, Python 2.6, Maya 2012 ----------------------------------------------------------------------------------- The MIT License Copyright (c) 2014 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
import sys, re, math, random, struct, zipfile, json import webapp2, hashlib import logging import operator, datetime, time import jinja2 from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers from google.appengine.ext import ndb from google.appengine.api import users fro...
from mikecore.DfsDLL import DfsDLL from mikecore.DfsFile import * class DfsBuilder(): ''' Builder for dfs files. The builder works in two stages. The first stage all header information and information of the dynamic items are provided. In the second stage static items are added. Then a dfs file i...
import abc import os import time import warnings from collections import Iterable from collections import OrderedDict from math import ceil import gym import numpy as np from gym import spaces from mujoco_py import MjSim, MjRenderContextOffscreen, MujocoException from mujoco_py import load_model_from_xml from ..model...
"""resnet in pytorch [1] <NAME>, <NAME>, <NAME>, <NAME>. Deep Residual Learning for Image Recognition https://arxiv.org/abs/1512.03385v1 Code Credit: https://raw.githubusercontent.com/weiaicunzai/pytorch-cifar100/master/models/resnet.py """ """ Properties: 1. Convolutions do not have bias 2. All convoluti...
import numpy as np import glob # this will be useful when reading reviews from file import os import tarfile import string from collections import deque import tensorflow as tf os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' batch_size = 50 def load_data(glove_dict,test=False): """ Take reviews from text files, ve...
import pytz import calendar import collections from functools import partial import itertools from datetime import datetime, timedelta import dateutil.parser from django.conf import settings from django.core.mail import EmailMessage from django.core.management.base import BaseCommand, CommandError from django.core.va...
import numpy as np import nnfs from nnfs.datasets import spiral_data nnfs.init() # Dense layer class Layer_Dense: # Layer initialization def __init__(self, n_inputs, n_neurons, weight_regularizer_l1=0, weight_regularizer_l2=0, bias_regularizer_l1=0, bias_regularizer_l2=0): ...
import pygame, sys,os, math, random from pygame.locals import * from rura import pipe import copy #from plik import nazwa klasy pygame.init() # utworzenie okna window = pygame.display.set_mode((1000, 600)) # ustawiamy etykietę pygame.display.set_caption('Gra w pyGame') # ładujemy plik graficzny r_krzywa = pipe('r_kr...
# -*- coding: UTF-8 -*- """ Construct benchmark for transfer learning for anomaly detection. :author: <NAME> (2019) :license: Apache License, Version 2.0, see LICENSE for details. """ import numpy as np import pandas as pd import sklearn as sk import math, os, sys import random import itertools import operator from ...
import argparse import os import time import math import numpy as np import random import sys import json import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable from utils import to_gpu, Corpus, batchify from models import Seq2Seq2Decoder, Se...
from __future__ import print_function # make sure print behaves the same in 2.7 and 3.x import matplotlib.pyplot as plt import netCDF4 import numpy as np from mean_lat import mean_lat from plot_meridional_E_transport import penergy_flux_2d, penergy_flux_vs_lat, MSE_vs_lat, surf_MSE_vs_lat import ClimateUtils as clim im...
# # wumpsim.py a Python implementation of pywumpsim # # Created by <NAME> - <EMAIL> # Date: November 6th, 2017 # # CSC 480 - Artificial Intelligence # Professor <NAME> # Cal Poly, San Luis Obispo # # https://github.com/erikphillips/wumpus_world # from Action import * from Orientation import * import PyAgent import r...
# Import libraries import glob import pandas as pd import numpy as np import pickle import requests import json import fiona import contextily as ctx import matplotlib.pyplot as plt import seaborn as sns import geopandas as gpd from shapely.geometry import Point, LineString, MultiPoint, Polygon start_year,end_year = 2...
import asyncio from collections import defaultdict from datetime import datetime from functools import partial from typing import Any, Callable, Dict, Iterable, List, Optional, TYPE_CHECKING, Tuple, Union from natsort import natsort_keygen from .abc import ModelList from .aggregate import MangaAggregate, VolumeAggreg...
import tensorflow as tf import time import math from sklearn.metrics import roc_auc_score import numpy as np def ln(inputs, epsilon=1e-8, scope="ln"): '''Applies layer normalization. See https://arxiv.org/abs/1607.06450. inputs: A tensor with 2 or more dimensions, where the first dimension has `bat...
#!/usr/bin/env python3 """Calculates the Frechet Inception Distance (FID) to evalulate GANs The FID metric calculates the distance between two distributions of images. Typically, we have summary statistics (mean & covariance matrix) of one of these distributions, while the 2nd distribution is given by a GAN. When run...
from __future__ import absolute_import import Queue import json import logging import threading import time import requests import fnmatch import os.path import importlib from blueflood_graphite_finder import auth logger = logging.getLogger('blueflood_finder') try: from graphite_api.intervals import Interval, ...
# Copyright 2013 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0 # # or in the "license" file accompa...
# # Customer/Card Detection techniques # # One of the main challenges of this competition (https://www.kaggle.com/c/ieee-fraud-detection) is **how you obtain the card or the customer whose the transactions, fraudulent or not, belong to.** It has been said that the datasets have all the information to get this, but we ...
import unittest import re import sys from collections import OrderedDict from mongosql.statements import MongoCriteria from sqlalchemy.orm import Query from sqlalchemy.dialects import postgresql as pg from . import models MongoCriteria.custom_op('$search', lambda col, value: col.ilike('%{}%'.format(value))) PY2 =...
""" Exposure Matrix Factorization for collaborative filtering CREATED: 2015-05-28 01:16:56 by <NAME> <<EMAIL>> Reference ---------- https://github.com/dawenl/expo-mf """ from scipy import sparse import bottleneck as bn import os import sys import time from math import sqrt import numpy as np from joblib import Pa...
import logging import pickle import random import time import os import numpy as np import warnings from pretty_midi import Instrument, PrettyMIDI, Note from ..utils import constants from ..utils import structured from ..utils import string from ..settings import static_storage try: from midi2audio import FluidS...
#!/usr/bin/env python3 #******************************************************************************** # DynoSprite - scripts/compression.py # Copyright (c) 2013-2014, <NAME> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
# -*- coding:utf-8 -*- ''' 实现对遥感数据的管理: 1. 数据获取:1)连接google storage的数据库 ;2)获取感兴趣区域的遥感影像;3)调用IDM下载遥感影像 2. 数据管理:1) 获取下载影像的RGB真彩色合成图片,有一个直观的印象 @ author: zhyin @ time: 2019/10/12 ''' from osgeo import gdal from pyhdf.SD import SD, SDC # conda install -c conda-forge pyhdf import os, osr, scipy.io import numpy as np import p...
''' ################################################################################################# AUTOR: <NAME> TRABALHO ACADEMICO: VIGILANCIA SOCIOASSISTENCIAL: MONITORAMENTO DE RISCOS E VULNERABILIDADES EM TEMPO REAL POR MEIO DE MINERAÇÃO DE TEXTO NO TWITTER UNIVERSIDADE: PONTIFÍCIA UNIVERSIDADE CATÓLICA DE...
import json from indy.did import create_and_store_my_did from indy.ledger import build_node_request, build_nym_request, build_get_txn_request from indy.pool import refresh_pool_ledger from plenum.test.node_catchup.helper import waitNodeDataEquality, \ ensureClientConnectedToNodesAndPoolLedgerSame from stp_core.loo...
# -*- coding: utf-8 -*- """ Copyright (C) 2017 <NAME> (plugin.video.netflix) Copyright (C) 2020 <NAME> (original implementation module) Generate the data to build a directory of xbmcgui ListItem's SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ import resources.lib.common...