text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
"""Jingju A Cappella Singing Dataset Loader .. admonition:: Dataset Info :class: dropdown Description: This dataset is a collection of boundary annotations of a cappella singing performed by Beijing Opera (Jingju, 京剧) professional and amateur singers. Contents: 1. wav.zip: audio f...
{"hexsha": "b77254ed2bc31c8c9c463d5b5a14d6bc08140c38", "size": 12178, "ext": "py", "lang": "Python", "max_stars_repo_path": "mirdata/datasets/compmusic_jingju_acappella.py", "max_stars_repo_name": "chrisdonahue/mirdata", "max_stars_repo_head_hexsha": "c9906e0948adcc75183f5246e7baa879022efcdb", "max_stars_repo_licenses"...
! simple_linkedlist.f90 -- ! Very basic implementation of linked lists ! Main purpose: illustrate the use of templates ! ! Real and real, dimension(:), allocatable ! ! Pure module implementation ! !!template linked_lists !! implicit none !! !! private !! public :: linked_list_def !...
{"hexsha": "b7c03e564ea798e588f599bc8368c1bf1eb1d1f6", "size": 2997, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "experiments/generics/simple_linkedlist.f90", "max_stars_repo_name": "timcera/flibs_from_svn", "max_stars_repo_head_hexsha": "7790369ac1f0ff6e35ef43546446b32446dccc6b", "max_stars_repo_licenses":...
""" Useful functions for segregation metrics """ __author__ = "Levi Wolf <levi.john.wolf@gmail.com>, Renan X. Cortes <renanc@ucr.edu>, and Eli Knaap <ek@knaaptime.com>" import numpy as np import pandas as pd import warnings from sklearn.metrics.pairwise import euclidean_distances def generate_distance_matrix(data)...
{"hexsha": "0e19f2332273dded40d965c6d3f6c908eb7372dd", "size": 2149, "ext": "py", "lang": "Python", "max_stars_repo_path": "segregation/util/util.py", "max_stars_repo_name": "noahbouchier/segregation", "max_stars_repo_head_hexsha": "88bd9608251b8bc42eae9265adb7941279b9868c", "max_stars_repo_licenses": ["BSD-3-Clause"],...
""" Supertype of all dictionary solver operators. A solver operator typically implements an efficient algorithm to apply the inverse of an operator. Examples include a solver based on QR or SVD factorizations. A solver operator stores the operator it has inverted. """ abstract type AbstractSolverOperator <: AbstractOp...
{"hexsha": "af68083d33b3c41a8c4038fe40bfec504facbf0a", "size": 8346, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/operator/solvers.jl", "max_stars_repo_name": "JuliaApproximation/BasisFunctions.jl", "max_stars_repo_head_hexsha": "9f2ab9cae1394cbaede565db1036fbf0fbd1da9c", "max_stars_repo_licenses": ["MIT"]...
# import libraries import pandas as pd import numpy as np # Create date time_index = pd.date_range('01/01/2010', periods=5, freq='M') # Create data frame, set index df = pd.DataFrame(index=time_index) # Create feature with a gap of missing values df['Sales'] = [1.0,2.0,np.nan,np.nan,5.0] # Interpolate missing value...
{"hexsha": "11e026b23adcacdba3eb6155b53a7550706a3930", "size": 471, "ext": "py", "lang": "Python", "max_stars_repo_path": "Preprocessing Dates and Times/missing-values-in-time-series.py", "max_stars_repo_name": "WyckliffeAluga/data-chronicles", "max_stars_repo_head_hexsha": "5219fe9cdbafb9fd7be88727483952c4c13f2790", "...
""" struct LinearCombinationDofVector{T} <: AbstractVector{Dof} change_of_basis::Matrix{T} dof_basis::AbstractVector{<:Dof} end Type that implements a dof basis (a) as the linear combination of a dof basis (b). The dofs are first evaluated at dof basis (b) (field `dof_basis`) and the dof values are...
{"hexsha": "507a34724c486d6a11d4cfd85ec7fec273314890", "size": 1649, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ReferenceFEs/LinearCombinationDofVectors.jl", "max_stars_repo_name": "lssc-team/Numa.jl", "max_stars_repo_head_hexsha": "5a1b8b5c3794c49d72ea3c50e5c16316411bcd1d", "max_stars_repo_licenses": ["...
if !@isdefined(Femshop) include("../Femshop.jl"); using .Femshop end init_femshop("FVadvection2d"); useLog("FVadvection2dlog") # Configuration setup domain(2) solverType(FV) timeStepper(RK4) # Mesh n = 15 # number of elements in each direction mesh(QUADMESH, elsperdim=n, bids=4) # Variables and BCs u = vari...
{"hexsha": "b100cbe24fe806984fb8eff6aaf6c3360a18cd04", "size": 1373, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/examples/example-advection2d-fv.jl", "max_stars_repo_name": "aa25desh/femshop", "max_stars_repo_head_hexsha": "8a75639ea0b7740d378b3f863bd6584f4cdd5ec1", "max_stars_repo_licenses": ["MIT"], "ma...
import numpy as np from keras.preprocessing.sequence import pad_sequences def embed_encode(datas): x = [] maxlen = 2500 amino_acids = 'ACDEFGHIKLMNPQRSTVWY' aa2int = dict((c, i+1) for i, c in enumerate(amino_acids)) for d in datas: x.append([aa2int[aa] for aa in d]) x = pad_sequences(x...
{"hexsha": "5983420f2e2e3015364ab07b37f6eb219b3196c9", "size": 2054, "ext": "py", "lang": "Python", "max_stars_repo_path": "encodes.py", "max_stars_repo_name": "zhengdd0422/VFNet", "max_stars_repo_head_hexsha": "b21e6635ffa318c0d8d81218ef47a92eac11bb4d", "max_stars_repo_licenses": ["CC-BY-3.0"], "max_stars_count": 4, "...
import numpy as np import pandas as pd import plotly.express as px from credit_scoring.metrics.credit_score import CreditScore class CalculatedKS(CreditScore): def ks(self) -> tuple: ''' Calculate the KS table of each decile, KS value, the deicile at KS :return: KS Tabel, KS value, Decile ''' ...
{"hexsha": "0890e08805a9acdd9b7704f85afdbc60f53dc720", "size": 2366, "ext": "py", "lang": "Python", "max_stars_repo_path": "credit_scoring/metrics/_ks.py", "max_stars_repo_name": "minhtcuet/creditscoring", "max_stars_repo_head_hexsha": "5a00f110b1936c7151a6e471cfb52b907b199f4d", "max_stars_repo_licenses": ["MIT"], "max...
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt # Curve-fit y around the peak to find subpixel peak x def quadraticpeak(y, x=None, npts=7, plotTitle=None): if x is None: x = np.arange(len(y)) xmax = np.argmax(y) W = int((npts + 1) / 2) window = np.arange(xmax - W + 1,...
{"hexsha": "009e240a0f38617accb8eefb50a580761607253c", "size": 941, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/utils/findpeak1D.py", "max_stars_repo_name": "qnano/simflux", "max_stars_repo_head_hexsha": "4f149d4e6c997954ac862cc5a7a404855b2a0be9", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import os import time import argparse import numpy as np from PIL import Image from ISR.models import RDN # Instantiate the argument parser object ap = argparse.ArgumentParser() # Add the arguments to the parser ap.add_argument('-i', '--image_path', nargs=1, metavar=('IMAGE PATH'), required=True, help='path to image ...
{"hexsha": "d0fb9e79cf1bcf75a48af84932a6eecb9ea1c80c", "size": 1402, "ext": "py", "lang": "Python", "max_stars_repo_path": "run_image_super_resolution.py", "max_stars_repo_name": "alexhla/deep-learning-for-computer-vision", "max_stars_repo_head_hexsha": "b59384f5dba5cd30638521310deeb61b3e41c64c", "max_stars_repo_licens...
[STATEMENT] lemma uniform_limit_bcontfunE: fixes f::"'i \<Rightarrow> 'a::topological_space \<Rightarrow>\<^sub>C 'b::metric_space" and l::"'a::topological_space \<Rightarrow> 'b::metric_space" assumes "uniform_limit UNIV f l F" "F \<noteq> bot" obtains l'::"'a::topological_space \<Rightarrow>\<^sub>C 'b::met...
{"llama_tokens": 280, "file": null, "length": 1}
[STATEMENT] lemma hdomain_shift_add: "hdomain (shift f delta) = \<lbrace>delta @+ n . n \<^bold>\<in> hdomain f\<rbrace>" [PROOF STATE] proof (prove) goal (1 subgoal): 1. hdomain (shift f delta) = RepFun (hdomain f) ((@+) delta) [PROOF STEP] by (rule hf_equalityI) (force simp add: hdomain_def hmem_shift_iff)
{"llama_tokens": 124, "file": "HereditarilyFinite_OrdArith", "length": 1}
%language UniquenessTypes data UList : Type -> UniqueType where Nil : UList a (::) : a -> UList a -> UList a umap : (a -> b) -> UList a -> UList b umap f [] = [] umap f (x :: xs) = f x :: umap f xs dupList : UList a -> UList a dupList [] = [] dupList (x :: xs) = x :: x :: dupList xs -- data BadList : Unique...
{"hexsha": "9df6176e8c577342424dd0872759086011e68ce7", "size": 822, "ext": "idr", "lang": "Idris", "max_stars_repo_path": "idris-exercises/UniqueTypes.idr", "max_stars_repo_name": "0nkery/tt-tutorials", "max_stars_repo_head_hexsha": "a39926989c2f39c718893b99bd857b6d51a172b0", "max_stars_repo_licenses": ["MIT"], "max_st...
[STATEMENT] lemma shiftr1_eq: \<open>shiftr1 w = word_of_int (uint w div 2)\<close> [PROOF STATE] proof (prove) goal (1 subgoal): 1. shiftr1 w = word_of_int (uint w div 2) [PROOF STEP] by (rule bit_word_eqI) (simp add: bit_simps flip: bit_Suc)
{"llama_tokens": 116, "file": "Word_Lib_Singleton_Bit_Shifts", "length": 1}
import numpy as np import matplotlib.pyplot as plt # Build a vector of 10000 normal deviates with variance 0.5^2 and mean 2 mu, sigma = 2, 0.5 v = np.random.normal(mu,sigma,10000) # Plot a normalized histogram with 50 bins plt.hist(v, bins=50, normed=1) # matplotlib version (plot) plt.show() # Compute the histogr...
{"hexsha": "7f765afbd000d3295e97553100ba357188c5f08e", "size": 476, "ext": "py", "lang": "Python", "max_stars_repo_path": "user/quickstart-2.py", "max_stars_repo_name": "ahaldane/ahaldane.github.io", "max_stars_repo_head_hexsha": "1132cc9d604115c8480769e6cd34a08519ad0797", "max_stars_repo_licenses": ["BSD-3-Clause"], "...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from multiprocessing import cpu_count import numpy as np import pandas as pd from IPython.display import display from joblib import Parallel, delayed import src.feature_helpers as fh from src.geopandas_helpers import get_distance def check_properties( d...
{"hexsha": "7a86be9dd8265db4052867ab19fedff2ccddb17e", "size": 14051, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/workflow_helpers.py", "max_stars_repo_name": "edesz/chicago-bikeshare", "max_stars_repo_head_hexsha": "8a51dac660defc618c4174131ac287047854b0c0", "max_stars_repo_licenses": ["MIT"], "max_star...
import math import numpy as np from rlbot.agents.base_agent import SimpleControllerState from mechanic.base_mechanic import BaseMechanic from util.linear_algebra import cross, normalize, dot, flatten PI = math.pi class JumpingShot(BaseMechanic): def __init__(self, agent, target_loc, target_dt, game_packet, ren...
{"hexsha": "3b866d38f01a0175d54ecfb67483ada7640279b3", "size": 1954, "ext": "py", "lang": "Python", "max_stars_repo_path": "RLBotPack/DisasterBot/mechanic/jumping_shot/jumping_shot.py", "max_stars_repo_name": "L0laapk3/RLBotPack", "max_stars_repo_head_hexsha": "f54038475d2a57428f3784560755f96bfcf8015f", "max_stars_repo...
#if !defined(BALSA_EIGEN_CONTAINER_SIZE_HPP) #define BALSA_EIGEN_CONTAINER_SIZE_HPP #include "../types/has_tuple_size.hpp" #include <Eigen/Core> namespace balsa::eigen { // outputs the size of a STL container like we would use for an eigen type. In particular, for static size objects it returns their size and for dyna...
{"hexsha": "f4ab83994e781ed79cd0043071d8f05c01d0b41f", "size": 668, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/balsa/eigen/container_size.hpp", "max_stars_repo_name": "mtao/balsa", "max_stars_repo_head_hexsha": "1552f3a367a80dfc41fffc50b5628b46ba716ab8", "max_stars_repo_licenses": ["MIT"], "max_stars_...
# Lint as: python3 # Copyright 2021 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 ...
{"hexsha": "1eb82c53670c1435e2d0cd50302e079dcc8e864d", "size": 11694, "ext": "py", "lang": "Python", "max_stars_repo_path": "Google/benchmarks/bert/implementations/bert-research-JAX-tpu-v4-2048/jax/layers/test_layers.py", "max_stars_repo_name": "gglin001/training_results_v1.1", "max_stars_repo_head_hexsha": "58fd4103f0...
from __future__ import absolute_import, division, print_function from scitbx.array_family import flex from scitbx.matrix import sqr from simtbx.nanoBragg import shapetype, nanoBragg from simtbx.nanoBragg.nanoBragg_crystal import NBcrystal from simtbx.nanoBragg.nanoBragg_beam import NBbeam from copy import deepcopy de...
{"hexsha": "336b9ca2b7215a05793ae755f6ae87bc062e7cad", "size": 11563, "ext": "py", "lang": "Python", "max_stars_repo_path": "simtbx/nanoBragg/sim_data.py", "max_stars_repo_name": "toastisme/cctbx_project", "max_stars_repo_head_hexsha": "d1a25147b5958822b6923fb55260749ccf9350ff", "max_stars_repo_licenses": ["BSD-3-Claus...
constants p q : Prop theorem t_or_intro_left (Hp : p) : p ∨ q := or.intro_left q Hp theorem t_or_intro_right (Hq : q) : p ∨ q := or.intro_right p Hq check t_or_intro_left -- p → p ∨ q check t_or_intro_right -- q → p
{"author": "gagansh7171", "repo": "Automated-Theorem-Proving-Codes", "sha": "88a12ff4fafc6b746412f1ee7086cbf471daae88", "save_path": "github-repos/lean/gagansh7171-Automated-Theorem-Proving-Codes", "path": "github-repos/lean/gagansh7171-Automated-Theorem-Proving-Codes/Automated-Theorem-Proving-Codes-88a12ff4fafc6b74641...
# -*- coding: utf-8 -*- # from __future__ import division import six import numpy as np from .utils import wrap_formula_exc, FormulaException from .context import ExecutionContext from operator import itemgetter def get_bars(freq): data_backend = ExecutionContext.get_data_backend() current_date = ExecutionC...
{"hexsha": "7af0b770363322b338e7a8c00a04b8619b9ef4d1", "size": 16236, "ext": "py", "lang": "Python", "max_stars_repo_path": "funcat/time_series.py", "max_stars_repo_name": "OptionDog/funcat", "max_stars_repo_head_hexsha": "30c16460676fdba8b15a12e466ccb374ba675d64", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_...
import numpy as np from lmfit import minimize, Parameters, fit_report import matplotlib.pyplot as plt import amplTest as at # stevilo praznih vrstic prazneVrstice = 5 # imena datotek s podatki file1 = 'aS1XantanP1T20.csv' file2 = 'aS1XantanP1T30.csv' # uvozimo podatke strain1, shear1, G1_1, G2_1 = at.podatki(file1, ...
{"hexsha": "6d911ace08ef4db4c9f1e4235de952758576d06f", "size": 2828, "ext": "py", "lang": "Python", "max_stars_repo_path": "1skupina/ampl/aAnalysisXantan.py", "max_stars_repo_name": "ivan-pi/rheology_lab", "max_stars_repo_head_hexsha": "220bc18319e54fff18594b6eb86ff188c072f39a", "max_stars_repo_licenses": ["MIT"], "max...
import gym from typing import Union import numpy as np from diayn_seq_code_revised.policies.skill_policy import \ SkillTanhGaussianPolicyRevised, MakeDeterministicRevised from diayn_seq_code_revised.base.rollouter_base import RolloutWrapperBase, RollouterBase import self_supervised.utils.typed_dicts as td from r...
{"hexsha": "915cab9010359873bd9d4e9a9cc7ec73a14dd4f4", "size": 2292, "ext": "py", "lang": "Python", "max_stars_repo_path": "diayn_seq_code_revised/data_collector/rollouter_revised.py", "max_stars_repo_name": "fgitmichael/SelfSupevisedSkillDiscovery", "max_stars_repo_head_hexsha": "60eee11cfd67046190dd2784bf40e97bdbed9d...
import object_detector.utils as utils import helpers import cv2 import numpy as np def test_crop_bb(): # Given one sample image and the following parameters image = helpers.get_one_sample_image() parameters = {"bb" : (0, 10, 10, 20), "pad" : 2, "desired_size" : (6,6), } ...
{"hexsha": "fbee4238dc163d587882462196d6b641f99eb0e3", "size": 2109, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_object_detector/utils_tests.py", "max_stars_repo_name": "penny4860/object-detector", "max_stars_repo_head_hexsha": "958dd218b0d0fbd895ae9c3dba0385d38329906c", "max_stars_repo_licenses":...
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 8/13/13 ###Function: ##### 1) odds ratio for two set vax coverage levels (0.245 and 0.455) and susceptibility values that range from 0 to 1 by 0.05, where 0 is fully protected and 1 is fully susceptibl...
{"hexsha": "6bb89a92ab3793e2e07adb39e233c02ce44679af", "size": 8408, "ext": "py", "lang": "Python", "max_stars_repo_path": "age_perc_vaxeff.py", "max_stars_repo_name": "eclee25/flu-SDI-simulations-age", "max_stars_repo_head_hexsha": "055ef42c8d3c760018836f82251948ad86917a3c", "max_stars_repo_licenses": ["MIT"], "max_st...
# -*- coding: utf-8 -*- import os import sys import glob import yaml import pandas as pd import inspect import numpy as np from time import sleep import matplotlib.pyplot as plt from astropy.io import fits from astropy.time import Time from astropy.stats import bayesian_blocks # ulimit -n 4096 def nibackgen3...
{"hexsha": "20f96973064e46d29b56196760ea4b188be231d6", "size": 53194, "ext": "py", "lang": "Python", "max_stars_repo_path": "hoppy/nicer/nicer.py", "max_stars_repo_name": "tenoto/hoppy", "max_stars_repo_head_hexsha": "895037f2ae83547c4dcea8f97a66645c5c2aba8a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "...
#!/bin/python3 import math import os import random import re import sys import numpy as np ''' Common Child https://www.hackerrank.com/challenges/common-child/problem ''' # Complete the commonChild function below. def commonChild(s1, s2): len1 = len(s1) len2 = len(s2) c =[[ 0 for _ in range(len2+1)] for...
{"hexsha": "d49666cca3038b92bf78846f328213be964385e8", "size": 1174, "ext": "py", "lang": "Python", "max_stars_repo_path": "Python/hackerrank/common-child.py", "max_stars_repo_name": "MarsBighead/mustang", "max_stars_repo_head_hexsha": "ffbaf109931557e40da2d97e4eb914bc1c0aba0d", "max_stars_repo_licenses": ["MIT"], "max...
import numpy as np import tensorflow as tf from scipy import interp from sklearn import metrics class Losses: @staticmethod def mse(y, pred, _, weights=None): if weights is None: return tf.losses.mean_squared_error(y, pred) return tf.losses.mean_squared_error(y, pred, ...
{"hexsha": "afde5ee51e30b5f8803fa0d403da31bf4d2d0b7d", "size": 4544, "ext": "py", "lang": "Python", "max_stars_repo_path": "_Dist/NeuralNetworks/c_BasicNN/NNUtils.py", "max_stars_repo_name": "llichengtong/yx1", "max_stars_repo_head_hexsha": "6619532e43799fea739a21fb14b999f7d1898fe9", "max_stars_repo_licenses": ["MIT"],...
macro export_all_files(cur_item, package_name) all_files = get_all_files(eval(cur_item)) cur_module = getfield(Main, Symbol(package_name)) cur_expression = quote end for file in all_files cur_export = split(file, "/")[end] !endswith(cur_export, ".jl") && continue cur_export = replace(cur_export,...
{"hexsha": "e399f7f9cd22c612531c76c6974a4fa02676e888", "size": 718, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/macros/export_all_files.jl", "max_stars_repo_name": "UnofficialJuliaMirror/Julz.jl-2eb9e3d9-fdc6-5d3b-abfa-b97b7f8e5896", "max_stars_repo_head_hexsha": "40ae62dc1df8cf345956005c4367655da56280a2"...
from __future__ import annotations import lark import numpy as np from pathlib import Path from typing import Callable, Dict, List, Optional, Set from dnnv.properties.expressions.terms import symbol from .errors import VNNLIBParserError from ..utils import LimitQuantifiers, parse_cli from ...expressions import * #...
{"hexsha": "5d2328872c7bad167222d32eefef03887af6343c", "size": 7850, "ext": "py", "lang": "Python", "max_stars_repo_path": "dnnv/properties/parser/vnnlib/parser.py", "max_stars_repo_name": "samysweb/dnnv", "max_stars_repo_head_hexsha": "58fb95b7300914d9da28eed86c39eca473b1aaef", "max_stars_repo_licenses": ["MIT"], "max...
module Implicits.Everything where -- common agda stdlib imports open import Prelude -- -- Oliveira's calculi in Agda -- -- We give a well-scoped version of Oliveira's ambiguous and deterministic -- resolution rules open import Implicits.Resolution.Ambiguous.Resolution open import Implicits.Resolution.Deterministic.R...
{"hexsha": "de5686b8f21fcb8c0d4121164601cf87eaabe8b0", "size": 3850, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "src/Implicits/Everything.agda", "max_stars_repo_name": "metaborg/ts.agda", "max_stars_repo_head_hexsha": "7fe638b87de26df47b6437f5ab0a8b955384958d", "max_stars_repo_licenses": ["MIT"], "max_stars_...
# LASSO Regresion on covid-19 cases in New York, Massachusetts and Connecticut ## Load modulues ```python %matplotlib inline import os import requests import urllib.parse from zipfile import ZipFile import io from datetime import datetime, timedelta import pandas as pd import numpy as np import statsmodels.api as ...
{"hexsha": "bc9d7c03e3a58d26345db538be6e6fe71ccef568", "size": 533175, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "Binomial_L1_LR_AIC_states.ipynb", "max_stars_repo_name": "ababino/corona", "max_stars_repo_head_hexsha": "dbccecbb7213777b48cc6e9273a3b62bf2190bfd", "max_stars_repo_licenses": ["MIT...
\subsection{Exponential discounting} \subsubsection{Introduction} We have: \(U_T=\sum_[t=T]^{\infty }d_tU(x_t)\) \subsubsection{Exponential discounting} \(d_t=(1+\delta )^t\) \(U_T=\sum_[t=T]^{\infty }(1+\delta )^tU(x_t)\) \(\delta \) is the discount rate.
{"hexsha": "52d9468a7f4fc014450a8c58d2adfd50bc1f69bb", "size": 266, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "src/pug/theory/ai/intertemporal/02-01-exponential.tex", "max_stars_repo_name": "adamdboult/nodeHomePage", "max_stars_repo_head_hexsha": "266bfc6865bb8f6b1530499dde3aa6206bb09b93", "max_stars_repo_lic...
! It was proposed by Christian Goldbach that every odd composite number can be ! written as the sum of a prime and twice a square. ! ! 9 = 7 + 2×1^2 ! 15 = 7 + 2×2^2 ! 21 = 3 + 2×3^2 ! 25 = 7 + 2×3^2 ! 27 = 19 + 2×2^2 ! 33 = 31 + 2×1^2 ! ! It turns out that the conjecture was false. ! ! What is the smalle...
{"hexsha": "7162479af66984958fc5ab6a7a0c609840ee25d0", "size": 1470, "ext": "f95", "lang": "FORTRAN", "max_stars_repo_path": "fortran/goldbach_conjecture.f95", "max_stars_repo_name": "guynan/project_euler", "max_stars_repo_head_hexsha": "2b57d4e0c760276388d9410a438a7de0d91017b5", "max_stars_repo_licenses": ["BSD-3-Clau...
section "Lifting expression refinement to graph transformations" text \<open> Optimizations of expression trees are simpler to encode and verify than equivalent graph transformations. However, to be effective, we still wish to perform optimizations as transformations of the graph rather than converting between represe...
{"author": "uqcyber", "repo": "veriopt-releases", "sha": "4ffab3c91bbd699772889dbf263bb6d2582256d7", "save_path": "github-repos/isabelle/uqcyber-veriopt-releases", "path": "github-repos/isabelle/uqcyber-veriopt-releases/veriopt-releases-4ffab3c91bbd699772889dbf263bb6d2582256d7/Optimizations/LiftExpressions.thy"}
import numpy as np import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder, StandardScaler from sklearn.linear_model import LogisticRegression from sklearn.svm import SVC,NuSVC from xgboost import XGBClas...
{"hexsha": "9c209920251b67861bfef8eeab2a666ca778b265", "size": 2392, "ext": "py", "lang": "Python", "max_stars_repo_path": "Traditional ML/voting_classifiers.py", "max_stars_repo_name": "sotirismos/Audio_GenreClassification", "max_stars_repo_head_hexsha": "cd96c0cbe79429d947559ee88fcbcb030545a2fd", "max_stars_repo_lice...
// Copyright 2015 Patrick Putnam // // 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 o...
{"hexsha": "441cbcf1a8aa3169b156db33cadfdcb42bc02521", "size": 1830, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/clotho/fitness/random_fitness_metric.hpp", "max_stars_repo_name": "putnampp/clotho", "max_stars_repo_head_hexsha": "6dbfd82ef37b4265381cd78888cd6da8c61c68c2", "max_stars_repo_licenses": ["EC...
[STATEMENT] lemma ldrop_ldrop [simp]: "ldrop n (ldrop m xs) = ldrop (n + m) xs" [PROOF STATE] proof (prove) goal (1 subgoal): 1. ldrop n (ldrop m xs) = ldrop (n + m) xs [PROOF STEP] proof(induct xs arbitrary: m) [PROOF STATE] proof (state) goal (3 subgoals): 1. ccpo.admissible lSup (\<sqsubseteq>) (\<lambda>a. \<fo...
{"llama_tokens": 765, "file": "Coinductive_Coinductive_List", "length": 5}
[STATEMENT] lemma multp_eq_multp\<^sub>D\<^sub>M: "asymp r \<Longrightarrow> transp r \<Longrightarrow> multp r = multp\<^sub>D\<^sub>M r" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>asymp r; transp r\<rbrakk> \<Longrightarrow> multp r = multp\<^sub>D\<^sub>M r [PROOF STEP] using multp\<^sub>D\<^sub>M_im...
{"llama_tokens": 333, "file": null, "length": 2}
# Ecuación de difusión en 1-D La ecuación de difusión unidimensional está dada por: $$\frac{\partial u}{\partial t}= \nu \frac{\partial^2 u}{\partial x^2}$$ La derivada de segundo orden se puede representar geométricamente como la línea tangente a la curva dada por la primera derivada. Discretizaremos la derivad...
{"hexsha": "33d4e2ba6e81e9c1885396483e7916f8abebe61b", "size": 279329, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "Desarrollo_Jupyter/ecuacion_difusion_and_burguers.ipynb", "max_stars_repo_name": "LeonardoLopez2218061/Proyecto_Final_EDP-NS", "max_stars_repo_head_hexsha": "849e54becbe0c013dcd41a3...
import numpy as np import pandas as pd from util.plotting import plot_intime_comparison # from Levenshtein import distance from util.df_matcher import df_matcher class dhBase: """ Basic class for dataset handling and cleaning. """ _ENCODING = 'utf-8' _FIELDS_TO_PLOT = [] def __init__(self, fil...
{"hexsha": "ab113a77645a500056a1054e4ada4a8dfa40b30e", "size": 4025, "ext": "py", "lang": "Python", "max_stars_repo_path": "Modelling Scenarios/scenario forecast folders/Epidemic Modelling v0710/data_handlers/dhBase.py", "max_stars_repo_name": "ec-jrc/COVID-19", "max_stars_repo_head_hexsha": "c9ef6ca3ae69edc8ba77b9f99d...
#include <string> #include <sstream> #include <iostream> #include <fstream> #include <vector> #include <set> #include <map> #include <array> // std::array #include <algorithm> //#include <boost/regex.hpp> // for position matrix #include <boost/numeric/ublas/matrix.hpp> #include <boost/lexical_cast.hpp> #inc...
{"hexsha": "9aac0471fc98f4747b213d08cfc79ac1747b5c65", "size": 120305, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/sequence.cpp", "max_stars_repo_name": "xuebingwu/PKA", "max_stars_repo_head_hexsha": "45f8d808cc36879d5da91213bc9902cd45f86b07", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 9.0, "ma...
\section{Network Level Performance Without Retransmission} \label{sec:op_over_infinite_plane} The transmission success probability $p_s(r)$ paves the way to analyze the network packet loss rate $P_{f}$, which is the base to calculate:\begin{inparaenum}[1)] \item the maximum normalized load $L_{\text{max}}$ under packe...
{"hexsha": "60217d3d6a48a34b406d2838f6b51d4ab474e791", "size": 25397, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Chapter5/bs_rx_divers_op_plane_oneshot.tex", "max_stars_repo_name": "hansomesong/PhD-Thesis", "max_stars_repo_head_hexsha": "4bdd0a41012030398a23ae16a66d5a02631f76f5", "max_stars_repo_licenses": ["...
/- Copyright (c) 2020 Frédéric Dupuis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Frédéric Dupuis -/ import analysis.convex.function import topology.algebra.affine import topology.local_extr import topology.metric_space.basic /-! # Minima and maxima of convex func...
{"author": "leanprover-community", "repo": "mathlib", "sha": "5e526d18cea33550268dcbbddcb822d5cde40654", "save_path": "github-repos/lean/leanprover-community-mathlib", "path": "github-repos/lean/leanprover-community-mathlib/mathlib-5e526d18cea33550268dcbbddcb822d5cde40654/src/analysis/convex/extrema.lean"}
from pathlib import Path from numpy import array from manim import * class VectorAddition(Scene): def construct(self): VECT1 = np.array([3, 2, 0]) VECT2 = np.array([2, -1, 0]) VECT1_COLOR = "#b9b28b" VECT2_COLOR = "#b98b99" VECT3_COLOR = "#8ba7b9" vect1 = Line(st...
{"hexsha": "f08c90950c326b5de97929af88037e4b4702160e", "size": 1993, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/manim/vector_add.py", "max_stars_repo_name": "aav789/study-notes", "max_stars_repo_head_hexsha": "34eca00cd48869ba7a79c0ea7d8948ee9bde72b9", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
#include <boost/accumulators/numeric/functional.hpp>
{"hexsha": "a5979ce80945ce7dceb76c324bef77018dad9db8", "size": 53, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_accumulators_numeric_functional.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses":...
import cv2 import numpy as np import os from tkinter import Tk import math import argparse from tkinter.filedialog import askopenfilename from matplotlib import pyplot as plt MIN_MATCH_COUNT = 10 # Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing # filename = askopenfilename() # sho...
{"hexsha": "6cf7e74b22e1c78eea8fca7aec1938b9906719a8", "size": 8051, "ext": "py", "lang": "Python", "max_stars_repo_path": "M12.py", "max_stars_repo_name": "dmeseguerw/ImageDetection", "max_stars_repo_head_hexsha": "fd18fa81514a9745a5e3138c360b0d878f2a6606", "max_stars_repo_licenses": ["MIT", "Unlicense"], "max_stars_c...
#!/bin/py # # Integrate exodus II file in space # import sys import numpy as np import glob import vtk # -----------------------------------------------# # Perform Radial Integration # # -----------------------------------------------# def integrate(name, var): """ given filename and var, gen...
{"hexsha": "2a2b284fbc97c75c8680be734320a76ffe8b961a", "size": 4572, "ext": "py", "lang": "Python", "max_stars_repo_path": "disputatio/routines/int.py", "max_stars_repo_name": "nicholasmalaya/paleologos", "max_stars_repo_head_hexsha": "11959056caa80d3c910759b714a0f8e42f986f0f", "max_stars_repo_licenses": ["MIT"], "max_...
import sqlite3 import numpy as np import ee import pandas as pd import datetime import geopandas # Filter collection by point and date def collection_filtering(point, collection_name, year_range, doy_range): collection = ee.ImageCollection(collection_name)\ .filterBounds(point)\ .filter(ee.Filte...
{"hexsha": "82b2429920afbf5e289127d41f9e46b49a4ca96e", "size": 17901, "ext": "py", "lang": "Python", "max_stars_repo_path": "tstools/utils.py", "max_stars_repo_name": "parevalo/measures_collector", "max_stars_repo_head_hexsha": "056f2b393fcca9811718a6265c32195ca9b9d79a", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
! { dg-do run } ! ! PR 47240: [F03] segfault with procedure pointer component ! ! Contributed by Martien Hulsen <m.a.hulsen@tue.nl> type t procedure (fun), pointer, nopass :: p end type type(t) :: x real, dimension(2) :: r x%p => fun r = evaluate (x%p) if (r(1) /= 5 .and. r(2) /= 6) call abort() cont...
{"hexsha": "94c59cd1a3bb3d4d5e254698834604bdd33ec725", "size": 545, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "gcc-gcc-7_3_0-release/gcc/testsuite/gfortran.dg/proc_ptr_comp_29.f90", "max_stars_repo_name": "best08618/asylo", "max_stars_repo_head_hexsha": "5a520a9f5c461ede0f32acc284017b737a43898c", "max_sta...
C @(#)sumopt.f 20.4 1/7/99 subroutine sumopt C SUMOPT--TO PREPARE THE "FILLING" FOR A STARRED SUMMARY OF C OPTIONS FOR THE CURRENT CASE include 'ipfinc/parametr.inc' include 'ipfinc/blank.inc' include 'ipfinc/filnam.inc' include 'ipfinc/lfiles.inc' inclu...
{"hexsha": "4a053b8b309f1bd45e96e47eb5e2aab4b126310a", "size": 10522, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ipf/sumopt.f", "max_stars_repo_name": "mbheinen/bpa-ipf-tsp", "max_stars_repo_head_hexsha": "bf07dd456bb7d40046c37f06bcd36b7207fa6d90", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 14, ...
/* * Copyright 2011-2014 Maxim Milakov * * 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 applic...
{"hexsha": "90d30deb4a311102e6f52d4a12ebe0ad37440411", "size": 2201, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "nnforge/save_resume_network_data_pusher.cpp", "max_stars_repo_name": "anshumang/nnForgeINST", "max_stars_repo_head_hexsha": "1e9ea1b539cadbb03daa39f5d81025c1b17c21d8", "max_stars_repo_licenses": ["A...
"""This file has been manually edited based on the generated results edits - rearrange Bunch - use DataFrame note seond `_cons` in params_table rownames is lnalpha """ # flake8: noqa import numpy as np import pandas as pd from statsmodels.tools.testing import ParamsTableTestBunch est = dict( rank = 9, ...
{"hexsha": "aecb0595e368a725b9c4b7aba8d86bf538e4308d", "size": 11609, "ext": "py", "lang": "Python", "max_stars_repo_path": "statsmodels/discrete/tests/results/results_predict.py", "max_stars_repo_name": "CCHiggins/statsmodels", "max_stars_repo_head_hexsha": "300b6fba90c65c8e94b4f83e04f7ae1b0ceeac2e", "max_stars_repo_l...
# -*- coding: utf-8 -*- """ Script for LGBM Ranking Based on Dennys Script in: "kdd-cup-2019/notebooks/0.1_DS_lightgbm_lambdaranking.ipynb" """ # Laod needed Packages: import pandas as pd import numpy as np import sklearn import lightgbm as lgb import os import pickle import json # Check Working Directory: if os.get...
{"hexsha": "600afcc0529053629fec0cd0d9cfd4e8583140bc", "size": 15374, "ext": "py", "lang": "Python", "max_stars_repo_path": "notebooks/0.1_FL_lgbm_ranking.py", "max_stars_repo_name": "AlessandroVol23/kdd-cup-2019", "max_stars_repo_head_hexsha": "7f140d1d6213dc0d05d07a2c8bff9fe949b72ed8", "max_stars_repo_licenses": ["MI...
#!/usr/bin/env python # coding=utf-8 import torch # import numpy as np a = torch.zeros((3, 3, 3)) b = torch.ones((3, 3, 3)) print("cancatenate operations") print(a.shape) print(b.shape) c = torch.cat([a, b], dim=0) d = torch.cat([a, b], dim=1) e = torch.cat([a, b], dim=2) print(c.shape) print(d.shape) print(e.shape)...
{"hexsha": "bd6377019fe17af6a31839c83800bca659374dac", "size": 914, "ext": "py", "lang": "Python", "max_stars_repo_path": "1.\u57fa\u672c\u6982\u5ff5/tensor_operation.py", "max_stars_repo_name": "wzmw-zr/Pytorch-Note", "max_stars_repo_head_hexsha": "4c93aa7e0d2862d967d4bc11ab6a3521342a1e33", "max_stars_repo_licenses": ...
import fire import numpy as np import torch from torch import nn import sparseconvnet as scn from torchplus.nn import Empty, Sequential from torchplus.tools import change_default_args from second.protos import pipeline_pb2 from google.protobuf import text_format from second.builder import voxel_builder class SparseMid...
{"hexsha": "aee0557dd37fcbb6db505911fb0e047e43bdea4d", "size": 5589, "ext": "py", "lang": "Python", "max_stars_repo_path": "second/test/test_MiddleExtractor.py", "max_stars_repo_name": "godspeed1989/second.pytorch", "max_stars_repo_head_hexsha": "35fa59237f30048e6c259635641784b23d4e3b64", "max_stars_repo_licenses": ["M...
from __future__ import print_function import cupy as np from benchpress.benchmarks import util bench = util.Benchmark("Solving the heat equation using the jacobi method", "height*width*iterations") def init_grid(height, width, dtype=np.float32): grid = np.zeros((height + 2, width + 2), dtype=dtype) grid[:, 0...
{"hexsha": "7d4556b88de0a69559212aa99dc13e8075c395be", "size": 1391, "ext": "py", "lang": "Python", "max_stars_repo_path": "benchpress/benchmarks/heat_equation/python_cupy/heat_equation.py", "max_stars_repo_name": "bh107/benchpress", "max_stars_repo_head_hexsha": "e1dcda446a986d4d828b14d807e37e10cf4a046b", "max_stars_r...
# -*- coding: utf-8 -*- """ Created on Thu Jan 11 17:58:56 2018 @author: t-shbhar """ #Model using LSTM import pickle from random import shuffle from keras.callbacks import ModelCheckpoint, EarlyStopping import numpy as np from keras.layers import Input, LSTM from keras.models import Model SAVED_PATH='./Processed' ...
{"hexsha": "64fc37e705133553a069275f5b172e8e6e5e6a18", "size": 1928, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_filter_v1.py", "max_stars_repo_name": "Shikhar-S/Kaggle-Speech-Recognition", "max_stars_repo_head_hexsha": "04be4a39b02a2ccac397627e7d4a7166336a562f", "max_stars_repo_licenses": ["MIT"], "ma...
import scipy.signal as signal from typing import List, Tuple import numpy as np def cheb1ord(Wp, Ws, Rp:float, Rs:float, zs:str='z')->Tuple: """ Chebyshev type I filter order selection. Return the order of the lowest order digital or analog Chebyshev Type I filter that loses no more than...
{"hexsha": "86b6c9082f591f937090c0fd01a777df6b3e1ee7", "size": 3348, "ext": "py", "lang": "Python", "max_stars_repo_path": "filterdesigner/IIRDesign/_cheb1ord.py", "max_stars_repo_name": "Y-F-Acoustics/filterdesigner", "max_stars_repo_head_hexsha": "268cf66b07404da6be72c74a320cecd2b2be2a72", "max_stars_repo_licenses": ...
\documentclass{article} \begin{document} \section*{Quadratic equations} The quadratic equation \begin{equation} \label{quad} ax^2 + bx + c = 0, \end{equation} where \( a, b \) and \( c \) are constants and \( a \neq 0 \), has two solutions for the variable \( x \): \begin{equation} \label{root} x_{1...
{"hexsha": "613c02e4af12c450d7154b52e47be1ea2ac70773", "size": 585, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Chapter_09_-_Writing_Math_Formulas/01_equations.tex", "max_stars_repo_name": "PacktPublishing/LaTeX-Beginner-s-Guide---Second-Edition", "max_stars_repo_head_hexsha": "26931e5c56bcfdf3d7a924ab6c2ae2f3...
""" Classes to represent color maps and meta data from various sources in uniform way. How to pick a good color map: 1) Select a map category depending on your data: sequenitial, diverging, cyclic 2) Select a good quality map. 3) Select a map for your domain and application. Geographical, ...
{"hexsha": "fa7d75bac6eed870212845a1da906c25c4ea115c", "size": 15499, "ext": "py", "lang": "Python", "max_stars_repo_path": "cmlib/cmap.py", "max_stars_repo_name": "franzhaas/cmlib", "max_stars_repo_head_hexsha": "e313b1535d2823bc056d9b46973f6485ba781841", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count":...
theory SestoftGC imports Sestoft begin inductive gc_step :: "conf \<Rightarrow> conf \<Rightarrow> bool" (infix "\<Rightarrow>\<^sub>G" 50) where normal: "c \<Rightarrow> c' \<Longrightarrow> c \<Rightarrow>\<^sub>G c'" | dropUpd: "(\<Gamma>, e, Upd x # S) \<Rightarrow>\<^sub>G (\<Gamma>, e, S @ [Dummy x])" (* | d...
{"author": "data61", "repo": "PSL", "sha": "2a71eac0db39ad490fe4921a5ce1e4344dc43b12", "save_path": "github-repos/isabelle/data61-PSL", "path": "github-repos/isabelle/data61-PSL/PSL-2a71eac0db39ad490fe4921a5ce1e4344dc43b12/SeLFiE/Example/afp-2020-05-16/thys/Call_Arity/SestoftGC.thy"}
!! Block A and B IF (.NOT. IsATransposed) THEN CALL TransposeMatrix(matA,matAT) END IF IF (.NOT. IsBTransposed) THEN CALL TransposeMatrix(matB,matBT) END IF IF (IsATransposed .AND. IsBTransposed) THEN CALL MultiplyBlock(matA, matB, blocked_memory_pool) ELSEIF (IsATransposed) THEN CALL...
{"hexsha": "490a28c9c7de185f751495e332c7980325ba3372", "size": 700, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Source/Fortran/sparse_includes/SparseBranch.f90", "max_stars_repo_name": "Kokookster/NTPoly", "max_stars_repo_head_hexsha": "717b2e344e800ea6c2de7061b96dd51ffd089f36", "max_stars_repo_licenses": ...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.set.basic /-! # A model of ZFC In this file, we model Zermelo-Fraenkel set theory (+ Choice) using Lean's underlying type theory. We do this in four mai...
{"author": "jjaassoonn", "repo": "projective_space", "sha": "11fe19fe9d7991a272e7a40be4b6ad9b0c10c7ce", "save_path": "github-repos/lean/jjaassoonn-projective_space", "path": "github-repos/lean/jjaassoonn-projective_space/projective_space-11fe19fe9d7991a272e7a40be4b6ad9b0c10c7ce/src/set_theory/zfc.lean"}
############################################################################### ############################################################################### #Copyright (c) 2016, Andy Schroder #See the file README.md for licensing information. ##########################################################################...
{"hexsha": "224427a3c9f9c11a8a75d0a7b2a41d66c8930de1", "size": 6102, "ext": "py", "lang": "Python", "max_stars_repo_path": "GenerateSTAR-CCMPropertyTables.py", "max_stars_repo_name": "AndySchroder/CO2Cycle", "max_stars_repo_head_hexsha": "35773af3b122dbd2e1ee9d41cb541ac8e7349654", "max_stars_repo_licenses": ["Unlicense...
module ProgrammingProjects using HTTP using Gumbo using Cascadia include("webcrawler.jl") # using .webcrawler: PAGE_URL # using .webcrawler: LINKS using .webcrawler: fetchpage using .webcrawler: extractlinks using .webcrawler: extracttitle using .webcrawler: extractimage using .webcrawler: articleinfo using .webcraw...
{"hexsha": "9ece58779833f807f1c345e6e240c53718c2644b", "size": 493, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ProgrammingProjects.jl", "max_stars_repo_name": "gjunqueira-sys/ProgrammingProjects.jl", "max_stars_repo_head_hexsha": "93fef746a7a87975af6c78fc3dc97f150def6a5d", "max_stars_repo_licenses": ["MI...
import numpy as np import math from .lowessi import Lowessi class OverfittingDetector(object): """ Overfitting detector Parameters: ---------- epoch_tail : int or None number of epochs for analysing of convergence min_num_epoch : int or None pure minimum number of epochs that...
{"hexsha": "5a1ec4741c762f322bba520214ca680ed3d324fb", "size": 2547, "ext": "py", "lang": "Python", "max_stars_repo_path": "common/overfitting_detector.py", "max_stars_repo_name": "osmr/utct", "max_stars_repo_head_hexsha": "7cf32823a83812d2eadce66d3effea6bee538109", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
{"hexsha": "d5b3367f9a31a9c602e0b138e617db68834b8229", "size": 2411, "ext": "py", "lang": "Python", "max_stars_repo_path": "tensorflow/contrib/distributions/python/kernel_tests/bijectors/scale_tril_test.py", "max_stars_repo_name": "tianyapiaozi/tensorflow", "max_stars_repo_head_hexsha": "fb3ce0467766a8e91f1da0ad7ada7c2...
from deap import base from deap import creator from deap import tools from deap import algorithms from pprint import pprint import numpy import random import matplotlib.pyplot as plt ONE_MAX_LENGTH = 100 # length of binary string # GenAlg parameters POPULATION_SIZE = 200 P_CROSSOVER = 0.9 P_MUTATION = 0.1 MAX_GENER...
{"hexsha": "ae3a50670a722e28fc1d5ee24510c39230fdb9b5", "size": 2451, "ext": "py", "lang": "Python", "max_stars_repo_path": "ch3/02-one-max-short.py", "max_stars_repo_name": "mbassale/genetic-algorithms-books", "max_stars_repo_head_hexsha": "7c2c5f78d715b1b8b345ef4512a9dcfac1889d92", "max_stars_repo_licenses": ["MIT"], ...
#!/usr/bin/env python # -*- coding: utf-8 -* """ MSNumpress decoder class Authors: Manuel Kösters Christian Fufezan """ import sys import struct import math import numpy as np class MSNumpress: """ The library provides implementations of 4 different algorithms, 1 designed to compress first order smoot...
{"hexsha": "531788e3a6e0b32808fb97dd84af77ef8e478106", "size": 18221, "ext": "py", "lang": "Python", "max_stars_repo_path": "pymzml/ms_numpress.py", "max_stars_repo_name": "RJMW/pymzML", "max_stars_repo_head_hexsha": "fe45a41e7bd599929e7626a32d7ec26178fc475d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 117,...
import time import numpy as np from parla import Parla from parla.cpu import cpu from parla.tasks import spawn from numba import jit, njit @jit("i4(int32[:], i4, i4)", fastmath=True, nogil=True, nopython=True) def partition(a, lo, hi): aa = 0 pivot = a[hi] i = lo for j in range(lo, hi): if a[...
{"hexsha": "de8c5bc4e861d6a5b9f95acb98338b59a7fd9cc8", "size": 1625, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/backup/quicksort.py", "max_stars_repo_name": "UTexas-PSAAP/Parla.py", "max_stars_repo_head_hexsha": "3d92a156be41983e32576940ef6baffd78d4eb84", "max_stars_repo_licenses": ["BSD-3-Clause"]...
# -*- coding: utf-8 -*- """ Created on Thu Aug 31 23:12:30 2017 @author: LALIT ARORA """ from sympy import * from pandas import * from pylab import * import cmath import math def power(a,p): temp=pow(a,p) realtemp=temp.real imgtemp=temp.imag realtemp=math.ceil(realtemp*1000)/1000 ...
{"hexsha": "9c95db29342b1ac2ea417a0fa156ce6e1b4161aa", "size": 10165, "ext": "py", "lang": "Python", "max_stars_repo_path": "DFTlib/DFTlib.py", "max_stars_repo_name": "MCodez/Discrete-Fourier-Transform", "max_stars_repo_head_hexsha": "6883783bb57f6127e294cf7b25f9b66aac23c8a7", "max_stars_repo_licenses": ["MIT"], "max_s...
# small modification from the source # https://github.com/naiyeleo/ABS/blob/master/TrojAI_competition/round1/abs_pytorch_round1.py import numpy as np import os import argparse # os.environ["OMP_NUM_THREADS"] = "4" # export OMP_NUM_THREADS=4 # os.environ["OPENBLAS_NUM_THREADS"] = "4" # export OPENBLAS_NUM_THREADS=4 #...
{"hexsha": "39616d21e721c42ae7eb8aff217e1093841c5430", "size": 44336, "ext": "py", "lang": "Python", "max_stars_repo_path": "abs_pytorch.py", "max_stars_repo_name": "TDteach/TaskSimilarity", "max_stars_repo_head_hexsha": "32c445efd325e96a610b4ec98a8e30688c0fa4bb", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_c...
#include <exception> #include <iostream> #include <boost/python/tuple.hpp> /*****************************************************************************************/ #include <boost/python/stl_iterator.hpp> using namespace boost::python; /* Read a ROS message from a serialized string. */ template <typename M> M ro...
{"hexsha": "6b91398e6cda5643dd54d91f1b601dba2cd3cec4", "size": 2015, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "costar_planning_interface/include/costar_task_plan/utils/python.hpp", "max_stars_repo_name": "cpaxton/costar_plan", "max_stars_repo_head_hexsha": "be5c12f9d0e9d7078e6a5c283d3be059e7f3d040", "max_sta...
+cocotb.module=fwrisc_rv32i_tests.compliance_tests +SW_IMAGE=${BUILD_DIR}/esw/I-ANDI-01.elf +REF_FILE=${PACKAGES_DIR}/riscv-compliance/riscv-test-suite/rv32i/references/I-ANDI-01.reference_output
{"hexsha": "4f60820fc5efe901f316c50e2dab026d0c05a8ae", "size": 197, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ve/fwrisc_rv32i/sim/tests/fwrisc_riscv_compliance_rv32i_I-ANDI-01.f", "max_stars_repo_name": "Kamran-10xe/fwrisc", "max_stars_repo_head_hexsha": "5c742c60ba620944ba19741c02782fb6b45d514e", "max_sta...
bogo_sort <- function(a) { while(is.unsorted(a)) { a <- sample(a) } return(a) } test <- c(20, -3, 50, 1, -6, 59) print("unsorted list") print(test) print("sorted list") print(bogo_sort(test))
{"hexsha": "0d354de27dd8c02edde762bb06716b50187d4597", "size": 206, "ext": "r", "lang": "R", "max_stars_repo_path": "contents/bogo_sort/code/r/bogo_sort.r", "max_stars_repo_name": "Iinguistics/algorithm-archivists.github.io", "max_stars_repo_head_hexsha": "3759b22a9c21b8b7a9bf075ca880e02ec524abc5", "max_stars_repo_lice...
import tensorflow as tf import numpy as np from frames import * from upsampling import * from BN_layers import BN_Dense class Sample_RNN(object): def __init__(self, is_training, frame_sizes, n_rnn, hidden_size, learn_h0, input_channels, batch_size, max_prot_len, global_conditioning = False, global_latent_size = 512,...
{"hexsha": "73f2fe4430ac48a6ec670b03b371b8681e6c90e6", "size": 3671, "ext": "py", "lang": "Python", "max_stars_repo_path": "sample_RNN_decoder.py", "max_stars_repo_name": "wanglabcumc/VariationalHomologEncoder", "max_stars_repo_head_hexsha": "b2ae5244bd651042fbe29e1a3769c07122c8c145", "max_stars_repo_licenses": ["MIT"]...
import numpy as np from torch.utils.data import Dataset from divmachines.utility.indexing import make_indexable import pandas as pd class DenseDataset(Dataset): """Matrix Factorization Dataset Parameters ---------- x: ndarray training samples y: ndarray, optional target values for ...
{"hexsha": "5d39588bc7152330b9434de1ada68ac87cd42a85", "size": 5865, "ext": "py", "lang": "Python", "max_stars_repo_path": "divmachines/classifiers/mf/dataset.py", "max_stars_repo_name": "DanielMorales9/FactorizationPyTorch", "max_stars_repo_head_hexsha": "50f0644fdb4a903550fb3f1ba78fb9fb8649ceb1", "max_stars_repo_lice...
import matplotlib.pyplot as plt import numpy as np import pandas as pd import os import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision.io as tvio from skimage import io, transform from torch import cuda from torch.utils.data import Dataset, DataLoader from to...
{"hexsha": "61373803585fbf9fdd6141ba3417fa1fed6cc365", "size": 2363, "ext": "py", "lang": "Python", "max_stars_repo_path": "pymcc/train.py", "max_stars_repo_name": "jgreer013/pymcc", "max_stars_repo_head_hexsha": "3472321cffa0e81136a0d0a9596a594635c45377", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
import numpy as np import os os.environ["KERAS_BACKEND"] = "tensorflow" from rl.core import Env, Space from ipdb import set_trace as stop import matplotlib.pyplot as pl class Box(Space): """ A box in R^n. I.e., each coordinate is bounded. """ def __init__(self, low, high, shape=None): """ ...
{"hexsha": "d98ef27d931c5dbca7010c1db8b733abedcc881c", "size": 4332, "ext": "py", "lang": "Python", "max_stars_repo_path": "rl/myenv.py", "max_stars_repo_name": "aasensio/DeepLearning", "max_stars_repo_head_hexsha": "71838115ce93e0ca96c8314cff3f07de1d64c235", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
\documentclass[conference]{IEEEtran} % This package serves to balance the column lengths on the last page of the document. % please, insert \balance command in the left column of the last page \usepackage{balance} %% to enable \thank command \IEEEoverridecommandlockouts %% The usage of the following packages...
{"hexsha": "b23496034a6d43c62610817310741b81cbb68f58", "size": 23812, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "fedcsis/ffinal/SH-FedCSIS/paper/Serhii-Hamotskyi-FedCSIS.tex", "max_stars_repo_name": "pchr8/gh", "max_stars_repo_head_hexsha": "44b930a35945813c3958527661cb8489f01fca24", "max_stars_repo_licenses"...
from collections import deque import matplotlib.pyplot as plt import numpy as np import tf2_ros import rospy from grid_cell import GridCell MIN_FRONTIER_CLASS_SIZE = 8 MIN_FRONTIER_DISTANCE = 10 class OccGrid: def __init__(self): self.occ_grid_2d = None # self.occ_grid_graph = nx.Graph() ...
{"hexsha": "1ed147c01e2103e72083a5ddca84ef3359190dc0", "size": 12284, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/occ_grid.py", "max_stars_repo_name": "kevin-thankyou-lin/tesroomba", "max_stars_repo_head_hexsha": "90e7bea6019e5b589ffdb1d55a028613a4ff456e", "max_stars_repo_licenses": ["BSD-3-Clause"], "ma...
\subsection{Fourier-Collocation} \label{Collocation} The main idea of ​​this method that we will see next is very similar to the Fourier-Galerkin method, except that we will use the interpolation operator described in (\ref{Interpolation_operator_odd}) for an odd number of points in the grid. For this, we must use ...
{"hexsha": "aa19de85de65544c8142cb8d600555991024b2f0", "size": 4410, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "docs/burgers_equation/deterministic/methods/Collocation.tex", "max_stars_repo_name": "alanmatzumiya/Maestria", "max_stars_repo_head_hexsha": "c5e2a019312fb8f9bc193b04b07b7815e6ed4032", "max_stars_re...
{-# OPTIONS --cubical #-} module all where import 00-preamble import 02-pi import 03-natural-numbers import 04-inductive-types import 05-identity-types import 06-universes import 07-finite-sets import 08-equivalences import 09-contractible-types import 10-fundamental-theorem import 11-truncation-levels import 12-func...
{"hexsha": "5676dac8d42b0aa617cf648ec16059d9849e883f", "size": 1170, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "Agda/all.agda", "max_stars_repo_name": "tmoux/HoTT-Intro", "max_stars_repo_head_hexsha": "22023fd35023cb6804424ce12cd10d252b80fd29", "max_stars_repo_licenses": ["CC-BY-4.0"], "max_stars_count": nu...
#! /usr/bin/env Rscript ########################################################################################## # Read singleton counts file and processed .ped ########################################################################################## scount<-read.table("full.singletons.count") names(scount)<-...
{"hexsha": "24faffbd3988127faff6849783429922ca9209d1", "size": 825, "ext": "r", "lang": "R", "max_stars_repo_path": "sandbox/R_deprecated/singleton_vs_cov.r", "max_stars_repo_name": "theandyb/smaug-genetics", "max_stars_repo_head_hexsha": "2e040aafb00bfecb698e83218c87dead07350630", "max_stars_repo_licenses": ["MIT"], "...
from trabalho_final.backpropagation_final import train_backpropagation, apply_backpropagation from openpyxl import load_workbook import numpy as np book = load_workbook('results_teste.xlsx') sheet = book.active def get_jobs_dict_from_xls_file(sheet): i = 2 end = False jobs_dict = dict() while not en...
{"hexsha": "c2eb436f77608cf9dca58c14c93c742e068637ee", "size": 4181, "ext": "py", "lang": "Python", "max_stars_repo_path": "final_homework/aplicacaoBackpropagation_bkp.py", "max_stars_repo_name": "ufpa-organization-repositories/artificial-neural-networks", "max_stars_repo_head_hexsha": "bfd3e62f9f8c353a1d3ca798928a7db5...
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Joan Massich <mailsik@gmail.com> # # License: BSD Style. import os.path as op import numpy as np from numpy.testing import assert_array_equal import pytest from mne.utils import run_tests_if_main, requires_good_network from mne.utils import requ...
{"hexsha": "81067cf06da23044b1abb9847f9086596e4a202c", "size": 6408, "ext": "py", "lang": "Python", "max_stars_repo_path": "mne/datasets/sleep_physionet/tests/test_physionet.py", "max_stars_repo_name": "ArasAzimi/mne-python", "max_stars_repo_head_hexsha": "65e510049d81ae3517f63c27244eacbc5cc8d320", "max_stars_repo_lice...
#!/usr/bin/env python # coding: utf-8 # In[1]: import sklearn import matplotlib.pyplot as plt import pandas as pd import numpy as np import seaborn as sns import scipy.stats as ss import os data_dir ='data' # # Question 2.1 - Load Data # Download prostate data from https://web.stanford.edu/~hastie/ElemStatLearn/...
{"hexsha": "5d9b1108b6337f08ddd289360ffdbcef7706580a", "size": 5841, "ext": "py", "lang": "Python", "max_stars_repo_path": "HW.py", "max_stars_repo_name": "williamrobotma/ECSE509HW", "max_stars_repo_head_hexsha": "5d2a8562fa498a90f81d17a9b70610c0cefba7b7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
#= NOTE: if allowing star like bond, the graph is not simple also, a tensor network can be a multi-graph, it can not be avoided in the contraction process note: not all legs form bonds note: single site bond means trace note: with star contraction, the relation between elimination ordering and contraction ordering stil...
{"hexsha": "80082ddde2189f4fb655e50d1c69de8232d1b64e", "size": 3970, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/incidence_matrix.jl", "max_stars_repo_name": "JuliaTagBot/FactorGraph.jl", "max_stars_repo_head_hexsha": "b36d360374b3c000847873ec5d10fc55da17f06d", "max_stars_repo_licenses": ["Apache-2.0"], "...
import tensorflow as tf from options import OptionTrainGAN from pipelines import DatasetGAN, DataLoaderGAN, Normalize from imageio import imsave import numpy as np import os, time, warnings warnings.filterwarnings('ignore') opt = OptionTrainGAN() gpus = tf.config.experimental.list_physical_devices('GPU') tf.config.ex...
{"hexsha": "92ee8fecdcd154560859ab8aa0dca9c24dba0123", "size": 7102, "ext": "py", "lang": "Python", "max_stars_repo_path": "Park_2020/train_gan.py", "max_stars_repo_name": "eunsu-park/solar_magnetogram_denoising", "max_stars_repo_head_hexsha": "574847f87202765fda508b5d45eeef3ff6356ac0", "max_stars_repo_licenses": ["MIT...
import numpy as np import json import os import matplotlib.pyplot as plt from matplotlib.lines import Line2D import matplotlib.patches as mpatches from matplotlib.patches import Patch from matplotlib.lines import Line2D pink = '#EC6779' green = '#288737' blue = '#4678a8' yellow = '#CBBA4E' cyan = '#6B...
{"hexsha": "44040e247f901b5b1eb5a084cf3c0dbf7f96d198", "size": 3498, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/plot_planner_compare_all.py", "max_stars_repo_name": "VCAT19/nerf-navigation", "max_stars_repo_head_hexsha": "cec640eb25026b02d47bc2ae0e94f4815fbb6561", "max_stars_repo_licenses": ["MIT"], "...
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: Peter Gottschling and And...
{"hexsha": "765d98a5f36457a649a75ed07059e021fe2a44e0", "size": 1718, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "libs/numeric/mtl/test/ranged_for_iteration_test.cpp", "max_stars_repo_name": "lit-uriy/mtl4-mirror", "max_stars_repo_head_hexsha": "37cf7c2847165d3537cbc3400cb5fde6f80e3d8b", "max_stars_repo_license...
from __future__ import division import matplotlib.pyplot as plt import numpy as np from random import uniform import discrete_rv from mc_tools import * def find_weird_stationary(): while 1: A = np.zeros((4,4)) d = uniform(0,0.0000001) e = uniform(0,0.0000001) f = uniform(0,0.0000001) A[0,2] = d A[0,1] ...
{"hexsha": "048ec3c89927a1bfeb1373941aed8bfc1e90662c", "size": 625, "ext": "py", "lang": "Python", "max_stars_repo_path": "check_function.py", "max_stars_repo_name": "haru110jp/KMR", "max_stars_repo_head_hexsha": "560c2b0bf1e9e0f16509b116861516ec60ec3251", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de' from random import sample from scipy import isscalar from .dataset import DataSet from pybrain3.utilities import fListToString class SupervisedDataSet(DataSet): """SupervisedDataSets have two fields, one for input and one for the target. """ ...
{"hexsha": "d9add0061b6db7be39aa061c6c78f5032e7b1fd8", "size": 4326, "ext": "py", "lang": "Python", "max_stars_repo_path": "venv/Lib/site-packages/pybrain3/datasets/supervised.py", "max_stars_repo_name": "ishatserka/MachineLearningAndDataAnalysisCoursera", "max_stars_repo_head_hexsha": "e82e772df2f4aec162cb34ac6127df10...
import numpy as np from sklearn.metrics import * from sklearn.feature_extraction.text import * from sklearn.ensemble import * from sklearn.model_selection import * def get_dataset(): files = ['./analysis/input/negative_tweets.txt', './analysis/input/neutral_tweets.txt', './analysis/input/positive_tweets.txt'] ...
{"hexsha": "5d238c71e4a96f6f25a986a9e4a17e54683ce93d", "size": 2806, "ext": "py", "lang": "Python", "max_stars_repo_path": "analysis/random_forest.py", "max_stars_repo_name": "chuajiesheng/twitter-sentiment-analysis", "max_stars_repo_head_hexsha": "7617243c953a20c517a737c79fe0f54e55aef140", "max_stars_repo_licenses": [...
from respeaker.bing_speech_api import BingSpeechAPI as Bing import wave from mic_array import MicArray import Queue from respeaker.pixel_ring import pixel_ring import sys import numpy as np import collections from snowboydetect import SnowboyDetect import paho.mqtt.client as mqtt SNOWBOY_COMMON_RES = 'resources/common...
{"hexsha": "7efa70403672e659b1b61c9338bae0e627d3f52d", "size": 2822, "ext": "py", "lang": "Python", "max_stars_repo_path": "snowboy/snow_bing_mqtt/snowboy_bing_mqtt.py", "max_stars_repo_name": "makserge/magicmirror", "max_stars_repo_head_hexsha": "a8816c89244305d0086e7adb053d10d9334f6b1c", "max_stars_repo_licenses": ["...
# 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...
{"hexsha": "12b0eadbea81b66926d273ce5644d41c086c7954", "size": 20799, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/singa/net.py", "max_stars_repo_name": "dataviral/incubator-singa", "max_stars_repo_head_hexsha": "9b06c29712e4fbfe955d3c7a7f651da037c09693", "max_stars_repo_licenses": ["Apache-2.0"], "max...
# --- # jupyter: # jupytext: # formats: ipynb,jl:hydrogen # text_representation: # extension: .jl # format_name: hydrogen # format_version: '1.3' # jupytext_version: 1.11.2 # kernelspec: # display_name: Julia 1.8.0-DEV # language: julia # name: julia-1.8 # --- # %% using...
{"hexsha": "04acf01f2c9bf7cfceaa82af3a29249685051aa7", "size": 699, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "0005/regression of generator.jl", "max_stars_repo_name": "genkuroki/public", "max_stars_repo_head_hexsha": "339ea5dfd424492a6b21d1df299e52d48902de18", "max_stars_repo_licenses": ["MIT"], "max_stars_...