text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
import matplotlib.pyplot as plt import numpy as np import pyvista as pv def draw(): global t global sst global ugrid_sst global sst_cube global ugrid_sst_cube global p sst.cell_arrays["faces"] = ugrid_sst[t].get_array("faces") sst_cube.cell_arrays["faces"] = ugrid_sst_cube[t].get_arra...
{"hexsha": "1006b9e7ecb51e8419c95b20475bbce5cde4eb43", "size": 1192, "ext": "py", "lang": "Python", "max_stars_repo_path": "poc-3/data/test/real/real_show_both.py", "max_stars_repo_name": "bjlittle/poc-ngvat", "max_stars_repo_head_hexsha": "91e5771d7692dafd477fd8564eb9a45966476ff5", "max_stars_repo_licenses": ["BSD-3-C...
! Compiled with pr83149_b.f90 ! module mod character(8) string contains function get_string() result(s) character(len_trim(string)) s s = string end function end module
{"hexsha": "3f15198bfe9708dd9475e0a46a774081939cbbbc", "size": 184, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "validation_tests/llvm/f18/gfortran.dg/pr83149_a.f90", "max_stars_repo_name": "brugger1/testsuite", "max_stars_repo_head_hexsha": "9b504db668cdeaf7c561f15b76c95d05bfdd1517", "max_stars_repo_licens...
# -*- coding: utf-8 -*- # # utils.py # # Copyright 2020 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. # You may obtain a copy of the License at # # http://www.apache.org/...
{"hexsha": "8a86e9ead7ba4249dcb296a211b75858406fdc38", "size": 13948, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/dglke/utils.py", "max_stars_repo_name": "ryantd/dgl-ke", "max_stars_repo_head_hexsha": "5a25166e402fab19f25ef6eb7525a1a0c65b8af3", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_cou...
# -*- coding: utf-8 -*- """ Created on Fri Dec 16 13:55:06 2016 @author: Alice """ # Note: will need packages 'pandas' and 'pillow' # Move to a directory on Nick's laptop from os.path import expanduser home = expanduser("~") import os os.chdir(home+'/research_not_syncd/git_projects/surf/abm/dda-mesa/...
{"hexsha": "1a9bbef22ce2c8874d7a46ef1f5f390677d790f9", "size": 8472, "ext": "py", "lang": "Python", "max_stars_repo_path": "abm/dda-mesa/alice_dda_code/kalman.py", "max_stars_repo_name": "nickmalleson/surf", "max_stars_repo_head_hexsha": "d6b8abb75635ac0fbadb445e67fc50ccb8b19945", "max_stars_repo_licenses": ["MIT"], "m...
import numpy import matplotlib.pyplot as plt import seaborn as sns import sys import json sns.set_style("whitegrid") results = json.load(open(sys.argv[1])) bar_width = 0.3 n_groups = len(results["cluster_ids"]) index = numpy.arange(n_groups) + bar_width/2 legend_labels = [] colors = sns.color_palette("hls", len(resul...
{"hexsha": "1298be24fe6f87a6c6b54f32f35e7fc7deaa44d9", "size": 788, "ext": "py", "lang": "Python", "max_stars_repo_path": "nma_algo_char/conf_overlap_hist.py", "max_stars_repo_name": "victor-gil-sepulveda/PhD-ANMPythonHelpers", "max_stars_repo_head_hexsha": "c0e15684cce4aa4da90141b51f043a567a5f8655", "max_stars_repo_li...
import densities import tensorflow as tf import numpy as np from param import Parameterized class Prior(Parameterized): def logp(self, x): """ The log density of the prior as x All priors (for the moment) are univariate, so if x is a vector or an array, this is the sum of the log ...
{"hexsha": "b9df3d4f2d622aea23062423ebac171ef0fac383", "size": 2096, "ext": "py", "lang": "Python", "max_stars_repo_path": "GPflow/priors.py", "max_stars_repo_name": "blutooth/dgp", "max_stars_repo_head_hexsha": "bedbbc3595fbe124d7a06c3d6d64f9009304491e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 1,...
[STATEMENT] lemma pp_dist_sup [simp]: "--(x \<squnion> y) = --x \<squnion> --y" [PROOF STATE] proof (prove) goal (1 subgoal): 1. - - (x \<squnion> y) = - - x \<squnion> - - y [PROOF STEP] by simp
{"llama_tokens": 96, "file": "Stone_Algebras_P_Algebras", "length": 1}
Require Export prosa.analysis.facts.model.service_of_jobs. Require Export prosa.analysis.facts.preemption.rtc_threshold.job_preemptable. Require Export prosa.analysis.abstract.definitions. (** * Run-to-Completion Threshold of a job *) (** In this module, we provide a sufficient condition under which a job receives...
{"author": "pointoflight", "repo": "prosa", "sha": "df7246392f27f32c760022b790f8c7aca11ff215", "save_path": "github-repos/coq/pointoflight-prosa", "path": "github-repos/coq/pointoflight-prosa/prosa-df7246392f27f32c760022b790f8c7aca11ff215/analysis/abstract/run_to_completion.v"}
import json import logging import os import random import sys import matplotlib.pyplot as plt import numpy as np import pygame as pg from peepo.playground.game_of_life.organism import Ennemies, Food, GoLPeepo from peepo.pp.genetic_algorithm import GeneticAlgorithm from peepo.pp.peepo_network import read_from_file, wr...
{"hexsha": "4815ea526f6781adcd2606dde5e7a56743e76748", "size": 7769, "ext": "py", "lang": "Python", "max_stars_repo_path": "peepo/playground/game_of_life/sandbox.py", "max_stars_repo_name": "hayoc/peepo_prototype", "max_stars_repo_head_hexsha": "57b4a42fd6b769cbd17a3449a49a013fc5d75455", "max_stars_repo_licenses": ["MI...
# -*- coding: utf-8 -*- """ Created on Sat Apr 21 09:52:43 2018 @author: Madhur Kashyap 2016EEZ8350 """ import os import re import logging import numpy as np import pandas as pd from glob import glob1 from PlotUtils import * class Timit: _COMMENT_RE = re.compile("^;"); _SPKR_COLS = ['i...
{"hexsha": "7f1bce323aa8b924b8b9a8c413729765d936a70e", "size": 14907, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/SpeechCorpus.py", "max_stars_repo_name": "madhurkashyap/boundary_detection", "max_stars_repo_head_hexsha": "f7fb98c8bcbc204b1fcd0eb34a8699f16a8725a3", "max_stars_repo_licenses": ["MIT"], "ma...
#!/usr/bin/python import os,sys import lcm import time from lcm import LCM import math import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab from threading import Thread import threading home_dir =os.getenv("HOME") #print home_dir sys.path.append(home_dir + "/drc/software/build/lib/pytho...
{"hexsha": "58d84c101919b71b98c49df5e38e3ddc2da2d12d", "size": 925, "ext": "py", "lang": "Python", "max_stars_repo_path": "software/motion_estimate/state_sync/scripts/republish_ERS_as_TRS.py", "max_stars_repo_name": "liangfok/oh-distro", "max_stars_repo_head_hexsha": "eeee1d832164adce667e56667dafc64a8d7b8cee", "max_sta...
! Runs a program in parallel using MPI ! (https://en.wikipedia.org/wiki/Message_Passing_Interface) module HelloMpi use mpi use Constants, only: OUTPUT_LENGTH implicit none private public :: hello_mpi contains ! ! Print the ID of the process and the total number of them. ! ! Inputs: ! -------- ! ! silent : if true, do...
{"hexsha": "85d04a216b9e59d6b41356453a3988bd6eab2833", "size": 970, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/hello_mpi.f90", "max_stars_repo_name": "evgenyneu/fortran_mpi_hello_world", "max_stars_repo_head_hexsha": "1ce72f7b69f9dedeb22b41c312a44daaf776fd00", "max_stars_repo_licenses": ["Unlicense"],...
import Std.Tactic.Basic import Std.Tactic.GuardExpr import Std.Tactic.RCases set_option linter.missingDocs false example (x : α × β × γ) : True := by rcases x with ⟨a, b, c⟩ guard_hyp a : α guard_hyp b : β guard_hyp c : γ trivial example (x : α × β × γ) : True := by rcases x with ⟨(a : α) : id α, -, c : ...
{"author": "leanprover", "repo": "std4", "sha": "5507f9d8409f93b984ce04eccf4914d534e6fca2", "save_path": "github-repos/lean/leanprover-std4", "path": "github-repos/lean/leanprover-std4/std4-5507f9d8409f93b984ce04eccf4914d534e6fca2/test/rcases.lean"}
! ! Calculates the Coulomb matrix ! ! v = < M | v | M > ! k,IJ k,I k,J ! ! with the mixed-basis functions M (indices I and J). ! ! Note that ! * ! v = v . ! k,JI k,IJ ! ! In the code: coulomb(IJ,k) = v where only the upper tr...
{"hexsha": "db3c7bdcf3f3588c42ab2d76d958bfd7cf214f48", "size": 71417, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "hybrid/coulombmatrix.f90", "max_stars_repo_name": "MRedies/FLEUR", "max_stars_repo_head_hexsha": "84234831c55459a7539e78600e764ff4ca2ec4b6", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
import tweepy import numpy as np from pymongo import MongoClient import re import json import math import folium auth = tweepy.OAuthHandler('q4utaFepGhE5OjujyoruBOoQg', 'D5K3P5URNUTxKnoVnggiUFsNapuNLOSx5cB7Zh6Y4HhpBhhtNy') auth.set_access_token('438291047-AWXl0LpNxZzjhdFA3FH7AJHtmLRK52QDJiKzq5Wz', 'o3kZKFF2s9ctgVpfDVR...
{"hexsha": "1db699149d1859ec779394429f47138f02ec2c34", "size": 3034, "ext": "py", "lang": "Python", "max_stars_repo_path": "main.py", "max_stars_repo_name": "alek-beloff/teamproject", "max_stars_repo_head_hexsha": "950dc59a18387ed1f4dcaeb3d4c9b6b8174b7840", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max...
import os from itertools import chain import numpy as np from c3nav.mapdata.render.engines import register_engine from c3nav.mapdata.render.engines.base3d import Base3DEngine @register_engine class WavefrontEngine(Base3DEngine): filetype = 'obj' def _normal_normal(self, normal): return normal / (np...
{"hexsha": "2b6dd9c28b2165429727f20b87b0828f52963859", "size": 3251, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/c3nav/mapdata/render/engines/wavefront.py", "max_stars_repo_name": "johnjohndoe/c3nav", "max_stars_repo_head_hexsha": "a17f863a3512e305595c16b0300796b6bae81241", "max_stars_repo_licenses": ["A...
import matplotlib.pyplot as plt import matplotlib.patches as patches import numpy as np class Gridmap(object): # Visualization tools # occupancy: A binary array encoding an occupancy grid of # the environment (1: occupied, 0: free) # xres, yres: Map resolution ...
{"hexsha": "bcf29767c293df4b70b6c03650b44c5afc6c241c", "size": 2276, "ext": "py", "lang": "Python", "max_stars_repo_path": "robotics/ekf_slam_and_pf_localization/code/pf/Gridmap.py", "max_stars_repo_name": "mtn/ml", "max_stars_repo_head_hexsha": "2cd2c447c15baa41e9626fa453c2fdc872e73cd6", "max_stars_repo_licenses": ["M...
function constraint(mechanism::Mechanism{T,Nn,Ne,Nb}, body::Body{T}) where {T,Nn,Ne,Nb} state = body.state timestep= mechanism.timestep mass = body.mass inertia = body.inertia gravity = mechanism.gravity x1, q1 = previous_configuration(state) x2, q2 = current_configuration(state) x3, q...
{"hexsha": "1b70956f9ba226412125dc37d415a41982f096fc", "size": 2864, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/integrators/constraint.jl", "max_stars_repo_name": "dojo-sim/Dojo.jl", "max_stars_repo_head_hexsha": "33ccdde8d7f74c4ea3c3bffdebcc6ed65959a5be", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
import datetime import gensim.downloader as api import io import json import math import nltk import numpy as np import os import pandas as pd import pdfminer import pickle import PyPDF2 import re import sys import pdfrw import textract import tldextract import traceback from collections import Counter from nltk impor...
{"hexsha": "153b4fbe5c9d1181700108f1f1ab1d3111eeb3e4", "size": 18592, "ext": "py", "lang": "Python", "max_stars_repo_path": "backend/process.py", "max_stars_repo_name": "manu183/NextIterationHackathon2018", "max_stars_repo_head_hexsha": "7ee730d7fae94376fa25d42287619d3a5577dd8c", "max_stars_repo_licenses": ["MIT"], "ma...
[STATEMENT] lemma tendsto_cong_limit: "(f \<longlongrightarrow> l) F \<Longrightarrow> k = l \<Longrightarrow> (f \<longlongrightarrow> k) F" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>(f \<longlongrightarrow> l) F; k = l\<rbrakk> \<Longrightarrow> (f \<longlongrightarrow> k) F [PROOF STEP] by simp
{"llama_tokens": 110, "file": null, "length": 1}
\subsection{Three-dimensional RTE solver \index{MYSTIC} (mystic)} \label{sec:mystic} The Monte Carlo method is the most straightforward way to calculate (polarized) radiative transfer. In forward tracing mode individual photons are traced on their random paths through the atmosphere. Starting from top of the atmos...
{"hexsha": "869fb1d585a88259570017388b076efbfb8ea77d", "size": 36543, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "ubuntu20/projects/libRadtran-2.0.4/doc/mystic.tex", "max_stars_repo_name": "AmberCrafter/docker-compose_libRadtran", "max_stars_repo_head_hexsha": "0182f991db6a13e0cacb3bf9f43809e6850593e4", "max_s...
import sys from sklearn.model_selection import LeaveOneGroupOut import numpy as np import anndata as ad import torch from torch import nn import torch.nn.functional as F import pandas as pd import shutil import pickle from catalyst import dl, utils import catalyst import os from sklearn.model_selection import Leave...
{"hexsha": "aab9a491d4bdee004aa26fa6f9c0c40a9db33ef9", "size": 8404, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/match_modality/methods/novel/train/script.py", "max_stars_repo_name": "itscassie/neurips2021_multimodal_topmethods", "max_stars_repo_head_hexsha": "9f8519cdf39bea1e70413283c7c004dff4d30482", "...
""" Implementation of variogram-matching procedure. """ # Author: Joshua Burt <joshua.burt@yale.edu> # License: BSD 3 clause import numpy as np import numpy.lib.format from pathlib import Path from sklearn.linear_model import LinearRegression # ---------------------- # ------ Checks -------- # ---------------------...
{"hexsha": "6d9e592f76df84f68aab5286b096307cd6206161", "size": 37372, "ext": "py", "lang": "Python", "max_stars_repo_path": "brainspace/null_models/variogram.py", "max_stars_repo_name": "jbburt/BrainSpace", "max_stars_repo_head_hexsha": "20c372a9d618e05cb27dacb205ec7748805169e2", "max_stars_repo_licenses": ["BSD-3-Clau...
kernel = "../src/pca/logreg.jl" function logreg_loss(v, X, b, λ) rv = 0.0 for i in 1:length(b) rv += log(1 + exp(-b[i]*(v[1]+dot(X[:, i], view(v, 2:length(v)))))) end rv / length(b) + λ/2 * norm(v)^2 end # input data set with known optimal solution X = [1.444786643000158 0.49236792885913283 -...
{"hexsha": "3bd7716aa765f3d23471700695253f5509bc90ed", "size": 4402, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/logreg_test.jl", "max_stars_repo_name": "severinson/CodedComputing.jl", "max_stars_repo_head_hexsha": "c60597579faa176f57c86acd309cf904c395268f", "max_stars_repo_licenses": ["MIT"], "max_stars...
## ------------------------------------------------------------------ let @info("Testing PropertyChangedEvent") global __glob = rand() e = PropertyChangedEvent(Main) update!(e, :__glob) events_count = 0 trigger_at = [3, 4, 5] for it in 1:10 if has_event!(e, :__glob) ...
{"hexsha": "9decf3d3d004df61d42c25a88026c6a3190fe8ae", "size": 547, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/PropertyChangedEvent_test.jl", "max_stars_repo_name": "josePereiro/EasyEvents.jl", "max_stars_repo_head_hexsha": "a398e269d707806f4a9a9080ad39fb2087bf452f", "max_stars_repo_licenses": ["MIT"], ...
from abc import ABC, abstractmethod import cv2 import numpy as np import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf from tensorflow.keras.backend import set_session import tensorflow.keras.losses import re import time from scipy.optimize import curve_fit class ModelInterface(ABC): @abst...
{"hexsha": "d646a2249dc9046690dcd255d9f672f2afd80aba", "size": 6105, "ext": "py", "lang": "Python", "max_stars_repo_path": "PythonAPI/custom/drive_models.py", "max_stars_repo_name": "MaxJohnsen/carla", "max_stars_repo_head_hexsha": "03b2e127b3f666d69087a8b89f4a4f7d60fc576e", "max_stars_repo_licenses": ["MIT"], "max_sta...
#ifndef __GIFS_UTIL_HPP #define __GIFS_UTIL_HPP #include <armadillo> namespace util{ arma::vec center_of_mass(const arma::mat R, const arma::vec m); arma::vec sum_cross(const arma::mat A, const arma::mat B); // arma::vec net(arma::vec (*op)(const arma::vec &a, const arma::vec &b), const arma::mat A, const arma...
{"hexsha": "ae77370bfd509754eb5a919136196a42b16d529f", "size": 684, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "gifs_src/util.hpp", "max_stars_repo_name": "farajilab/gifs_release", "max_stars_repo_head_hexsha": "ffa674110bcd15de851a8b6a703b4f4bc96fcd2d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
*----------------------------------------------------------------------* subroutine get_mrcc_response_input(orb_info,env_type) *----------------------------------------------------------------------* * process response functions input for ic-MRCC and write everything * in a file. * Adapted from get_r...
{"hexsha": "b07d3dad8985c28df47eb9e0213dbe4b67a0c5b4", "size": 9388, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "input/get_mrcc_response_input.f", "max_stars_repo_name": "ak-ustutt/GeCCo-public", "max_stars_repo_head_hexsha": "8d43a6c9323aeba7eb54625b95553bfd4b2418c6", "max_stars_repo_licenses": ["MIT"], "ma...
#!/usr/bin/env python3 """ Functions for use with fitting. .. code-author: Raymond Ehlers <raymond.ehlers@cern.ch>, Yale University """ import abc import logging import operator from typing import Any, Callable, Optional, Sequence, Union import numpy as np import numpy.typing as npt from pachyderm import generic_c...
{"hexsha": "1246c10bfc38de6c5b4134cb060faef272265f03", "size": 7550, "ext": "py", "lang": "Python", "max_stars_repo_path": "pachyderm/fit/function.py", "max_stars_repo_name": "raymondEhlers/pachyderm", "max_stars_repo_head_hexsha": "c9a554d8c4e904315171a5aafa4569259e280fa4", "max_stars_repo_licenses": ["BSD-3-Clause"],...
import numpy as np import mylib_f77 if __name__ == "__main__": x = [2.0, 3.0, 4.0] y = [1.0, 1.0, 1.0] alpha = 1.0 n = len(x) # Functions can take iterables, but you get an ndarray back. You also # modify an argument inplace if it isn't an ndarray. ret = mylib_f77.daxpy(n, alpha, x, y) ...
{"hexsha": "fae99343acd83d51612bc80d8a0c790723773c73", "size": 658, "ext": "py", "lang": "Python", "max_stars_repo_path": "linking/f77/using_f2py.py", "max_stars_repo_name": "berquist/eg", "max_stars_repo_head_hexsha": "4c368b12eaaffcf0af8032f10348cf8bc1c3957a", "max_stars_repo_licenses": ["Unlicense"], "max_stars_coun...
# Extended Kalman filter with Parameter Identification for Nomoto model An Extended Kalman filter with a Nomoto model as the predictor will be developed. The filter should also estimate the parameters in the Nomoto model. This is done by setting up a system where the parameters are defined as some of the states in the...
{"hexsha": "27bc9d14f685488f4bc9f4202e3ec9681b949fa8", "size": 19241, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "notebooks/15.42_EKF_PIT_2_nomoto.ipynb", "max_stars_repo_name": "martinlarsalbert/wPCC", "max_stars_repo_head_hexsha": "16e0d4cc850d503247916c9f5bd9f0ddb07f8930", "max_stars_repo_lic...
import argparse import matplotlib matplotlib.use("TkAgg") import csv import os import matplotlib.pyplot as plt import numpy as np def plot_mean_std(ax, x, y_mean, y_std, color="darkorange", alpha=0.2, label=None): ax.fill_between( x, y_mean - y_std, y_mean + y_std, color=color, alpha=alpha, label=label...
{"hexsha": "732ab700e7a0baf1593eee0b03eec27c59292836", "size": 4387, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/plot_learning_stats.py", "max_stars_repo_name": "cyrushx/risk_sac", "max_stars_repo_head_hexsha": "74f02a286166301221010a770360668d1dd8e63f", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
## Demo de for Loops ## Prof. James Hunter ## from: https://rstudio.cloud/project/1181172 ## 28 de maio de 2020 ## Baseado em Cap. 21 de Grolemund & Wickham, R for Data Science (O'Reilly) set.seed(42) df <- tibble( a = rnorm(10), b = rnorm(10), c = rnorm(10), d = rnorm(10) ) glimpse(df) s...
{"hexsha": "cd6d9c373ff60ccd20953c746a0350d52abcd33c", "size": 495, "ext": "r", "lang": "R", "max_stars_repo_path": "demo_for_loop.r", "max_stars_repo_name": "jameshunterbr/Sustentare_MAD_2020", "max_stars_repo_head_hexsha": "299a7f0af7e999e59cc53c57cf22618b6eb68092", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
function g2(byvec, valvec) cv = copy(valvec) cb = copy(byvec) FastGroupBy.grouptwo!(cb, cv) cv, cb end a = rand([randstring(8) for i=1:100_000], 10_000_000) x = rand(10_000_000) gc_enable(false) @time g2(a,x); gc_enable(true) function g3(byvec, valvec) bv = collect(zip(Ptr{UInt}.(pointer.(byvec))...
{"hexsha": "8e0be3d1156f9894be2143c94c1a2388a938a1de", "size": 3953, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/experiments/string_sort_exp.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/SortingLab.jl-562c1548-17b8-5b69-83cf-d8aebec229f5", "max_stars_repo_head_hexsha": "0af37a9af94de625d6acb...
import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import seekr2.modules.common_base as base import plotting title = "Muller Potential System" model_file = "/home/lvotapka/toy_seekr_systems/muller_potential_multi/model.xml" model = base.load_model(model_file) boundaries = np.a...
{"hexsha": "a128b6ba431528b388d5bbcfa08c944b4474c7c3", "size": 1195, "ext": "py", "lang": "Python", "max_stars_repo_path": "systems/toy_systems/muller_potential_plot_multidimensional.py", "max_stars_repo_name": "seekrcentral/seekr2_systems", "max_stars_repo_head_hexsha": "938e36ea61a3f106c0fb8d81b9bd02f664327ac7", "max...
@with_kw struct MobileNetV3 <: ModuleSpec stages::AbstractVector{MBConv} "Size of last convolution" k_out::Int end function (mbnv3::MobileNetV3)() head = ConvBlock(ksize = 3, k_in = 3, k_out = 16; σ = relu, stride = 2)() return Chain( head, [stage() for stage in mbnv3.stages]...,...
{"hexsha": "c00c814c7c5d8fe0e31846447512dfb48d06954e", "size": 5298, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/mobilenetv3.jl", "max_stars_repo_name": "lorenzoh/FluxModels.jl", "max_stars_repo_head_hexsha": "9d53bf10c0fe8d5c333e5ec5866e8699f9c5f3e4", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import numpy as np from typing import Tuple import autoarray as aa from autogalaxy.profiles.light_profiles import light_profiles as lp class LightProfileLinear(lp.LightProfile, aa.LinearObj): def mapping_matrix_from(self, grid: aa.type.Grid2DLike) -> np.ndarray: return self.image_2d_from(grid=...
{"hexsha": "8b8d4ed94f218b92365e5c0b9c8bf326872a0598", "size": 1614, "ext": "py", "lang": "Python", "max_stars_repo_path": "autogalaxy/profiles/light_profiles/light_profiles_linear.py", "max_stars_repo_name": "caoxiaoyue/PyAutoGalaxy", "max_stars_repo_head_hexsha": "ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05", "max_stars...
import sys from rdkit import Chem import glob import pandas as pd import numpy as np if __name__ == '__main__': COLUMNS = ['SMILES', 'DOCKING', 'ITER'] # SAC d_path = sys.argv[1] protein = d_path.split('_')[0] ef = [] tot = [] unique = [] hit = [] top_k_each = [] df_append = None...
{"hexsha": "e3d872361b219de6948df9b88167e794518b2417", "size": 1707, "ext": "py", "lang": "Python", "max_stars_repo_path": "rl_final_results/libs/enrichment.py", "max_stars_repo_name": "AITRICS/FREED", "max_stars_repo_head_hexsha": "ff75e903808edc57f01ef6d0d198b44a56dcdf4b", "max_stars_repo_licenses": ["Apache-2.0"], "...
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Clearpath Robotics * 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 mus...
{"hexsha": "42aee42d4933732568d1e376fd28168dd2b4aec6", "size": 5827, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "fuse_models/benchmark/benchmark_unicycle_2d_state_cost_function.cpp", "max_stars_repo_name": "mcx/fuse", "max_stars_repo_head_hexsha": "3825e489ceaba394fb07c87e0e52dce9485da19b", "max_stars_repo_lic...
// Copyright (C) 2020 T. Zachary Laine // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/program_options_2/parse_command_line.hpp> #include <boost/program_options_2/storage.hpp> #include <gtest/...
{"hexsha": "ca868e967d67227c47275b59234661d6f9578bdc", "size": 18095, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/storage.cpp", "max_stars_repo_name": "tzlaine/program_options_2", "max_stars_repo_head_hexsha": "41f2d9fef785d0f775cccff9b318526ad19bc089", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_c...
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.3.4 # kernelspec: # display_name: Python [conda env:mtg] # language: python # name: conda-env-mtg-py # --- # ...
{"hexsha": "99784dadc165ed2ccb76f49a1f54031e5f2f910b", "size": 16220, "ext": "py", "lang": "Python", "max_stars_repo_path": "mtgnlp/flows/build_text_to_entity_graphs.py", "max_stars_repo_name": "pedrovgp/mtg-nltk", "max_stars_repo_head_hexsha": "aeda27914236b5b82fa9c0b7d9a9482031f0fe69", "max_stars_repo_licenses": ["MI...
# # 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...
{"hexsha": "4494855dfbb76d5e2c2c34205dab99147a1b64ff", "size": 10579, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/qabot/qabot_data.py", "max_stars_repo_name": "XinChCh/singa", "max_stars_repo_head_hexsha": "93fd9da72694e68bfe3fb29d0183a65263d238a1", "max_stars_repo_licenses": ["Apache-2.0"], "max_st...
C ****************************************************************** C ****************************************************************** subroutine newtd(nind,x,l,u,g,m,rho,equatn,d,adsupn,maxelem, +memfail,inform) implicit none C SCALAR ARGUMENTS logical memfail integer inf...
{"hexsha": "fc8b52604a4814ee848e7ce80673a4e274a70b54", "size": 10574, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "docker/optimization/pyOpt/tags/v1.2.0/pyOpt/pyALGENCAN/source/newtd.f", "max_stars_repo_name": "liujiamingustc/phd", "max_stars_repo_head_hexsha": "4f815a738abad43531d02ac66f5bd0d9a1def52a", "max...
chapter \<open>Abstract Formulation of Gödel's Second Incompleteness Theorem\<close> (*<*) theory Abstract_Second_Goedel imports Abstract_First_Goedel Derivability_Conditions begin (*>*) text \<open>We assume all three derivability conditions, and assumptions behind Gödel formulas:\<close> locale Goedel_Second_Assump...
{"author": "isabelle-prover", "repo": "mirror-afp-devel", "sha": "c84055551f07621736c3eb6a1ef4fb7e8cc57dd1", "save_path": "github-repos/isabelle/isabelle-prover-mirror-afp-devel", "path": "github-repos/isabelle/isabelle-prover-mirror-afp-devel/mirror-afp-devel-c84055551f07621736c3eb6a1ef4fb7e8cc57dd1/thys/Goedel_Incomp...
\subsection{Bundle Protocol Agent Interface} The bundle protocol agent interface will use the current DTN2 application interface. We seek feedback on any additional features that are required for this interface. In addition, MITRE is developing an XML-based interface that conforms to the ICCP. The interface bein...
{"hexsha": "b30722e711e52b9d3b6761000c1421572ce94991", "size": 528, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/plugin-architecture/bpa-interface.tex", "max_stars_repo_name": "delay-tolerant-networking/DTN2", "max_stars_repo_head_hexsha": "1c12a9dea32c5cbae8c46db105012a2031f4161e", "max_stars_repo_licenses...
# pylint: disable=abstract-method, no-self-use, useless-super-delegation, too-many-lines, duplicate-code """ Modules defining isotropic and kinematic hardening models. These models provide: 1. A set of internal variables 2. The evolution equations defining each of those variables 3. A map between the inter...
{"hexsha": "e3c70a88e58cdfefc7c0853f4c0469d67722e5d0", "size": 32839, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyoptmat/hardening.py", "max_stars_repo_name": "tianjuchen/pyoptmat", "max_stars_repo_head_hexsha": "6f34205f450fd884679f37522ccd0d0b65ecdb71", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
# Copyright 2020-2021 OpenDR European Project # # 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 agree...
{"hexsha": "e753d7caed0ce915fd8cbac38361666c23178571", "size": 6010, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/opendr/perception/object_tracking_3d/ab3dmot/algorithm/ab3dmot.py", "max_stars_repo_name": "makistsantekidis/opendr", "max_stars_repo_head_hexsha": "07dee3b59d3487b9c5a93d6946317178a02c9890", ...
import pandas as pd import numpy as np import math from gurobipy import * from sklearn import preprocessing import json import razzball_scraper class Team: def __init__(self): # players self.Hitters = {} self.Pitchers = {} self.Bench = {} self.budget = 260 # batter ...
{"hexsha": "3f0611ae80b4a4d70d6de4d914a961a967d12b5c", "size": 20172, "ext": "py", "lang": "Python", "max_stars_repo_path": "draftbot3001/RotisserieOptimizer.py", "max_stars_repo_name": "samozm/rotissarie_baseball", "max_stars_repo_head_hexsha": "9338c2cd68bfa628b27ee1fd8756bc71d07ff3e5", "max_stars_repo_licenses": ["M...
#include "status_loop.h" #include <boost/log/trivial.hpp> namespace asio = boost::asio; void guarded_main() { BOOST_LOG_TRIVIAL(info) << "initializing I/O"; io io; } i32 main() { try { guarded_main(); } catch (const std::exception& e) { BOOST_LOG_TRIVIAL(fatal) << e.what()...
{"hexsha": "eb1e255edcffea085256b57e7ffb022ad8479ffd", "size": 385, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/main.cpp", "max_stars_repo_name": "janekb04/driver", "max_stars_repo_head_hexsha": "a1271d35726e7490add9bbe265ef292db297ace1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_st...
""" Copyright 2020 The OneFlow 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 applicable law or agr...
{"hexsha": "6fa18280e0dc4fc9e6ceb9054fe3dd7196326f99", "size": 2913, "ext": "py", "lang": "Python", "max_stars_repo_path": "oneflow/python/nn/modules/reshape.py", "max_stars_repo_name": "vycezhong/oneflow", "max_stars_repo_head_hexsha": "adeab621afca45142d85ed9cf9c4375af85d33d1", "max_stars_repo_licenses": ["Apache-2.0...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
{"hexsha": "c8e8c070ed915c2bcecfa071f2e76e3981a9108d", "size": 5992, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "moveit_ros/perception/mesh_filter/include/moveit/mesh_filter/sensor_model.hpp", "max_stars_repo_name": "FabianSchuetze/moveit2", "max_stars_repo_head_hexsha": "d1960f3994daff215c4a51de15c96ce618f4d9...
""" Tests of the "convenience_Horizons" routines that are used for testing. Some of these tests really function as demos/documentation to remind myself/ourselves of how these Horizons functions are intended to work """ # Import standard packages # -------------------------------------------------------------- import ...
{"hexsha": "e9459c6bf47c528b6a046741149a42cf8ab0a673", "size": 55653, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_convenience_Horizons.py", "max_stars_repo_name": "Smithsonian/cheby_checker", "max_stars_repo_head_hexsha": "ce1542e4b1b3303ac08ea823be1eaec06322fd48", "max_stars_repo_licenses": ["MIT...
[STATEMENT] lemma (in Corps) value_inf_zero:"\<lbrakk>valuation K v; x \<in> carrier K; v x = \<infinity>\<rbrakk> \<Longrightarrow> x = \<zero>" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>valuation K v; x \<in> carrier K; v x = \<infinity>\<rbrakk> \<Longrightarrow> x = \<zero> [PROOF STEP] by (ru...
{"llama_tokens": 159, "file": "Valuation_Valuation1", "length": 1}
# -*- coding: utf-8 -*- import os import numpy as np from keras.models import Model import sys # print("before") # print(sys.path) sys.path.append(os.path.dirname(os.path.realpath(__file__))) sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))) + '/utils') from backend import ( DummyNetFea...
{"hexsha": "b6e7ad19d655bb10c87cecbdcaa0cf95aa0a89a5", "size": 11242, "ext": "py", "lang": "Python", "max_stars_repo_path": "wbia_pie/model/base_model.py", "max_stars_repo_name": "karenc/wbia-plugin-pie", "max_stars_repo_head_hexsha": "0e0130501108855c437684914c41130e49037b91", "max_stars_repo_licenses": ["Apache-2.0"]...
// kv_record_store.cpp /** * Copyright (C) 2014 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * * This program is distributed in th...
{"hexsha": "30c1459ee6ba65d627b2935dc84885c5df753faf", "size": 23768, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/mongo/db/storage/kv/dictionary/kv_record_store.cpp", "max_stars_repo_name": "leifwalsh/mongo", "max_stars_repo_head_hexsha": "4cf51324255f76a110246f6d1646dc8cda570141", "max_stars_repo_licenses...
""" AskHandlers related to order relations: positive, negative, etc. """ from sympy.assumptions import Q, ask from sympy.assumptions.handlers import CommonHandler class AskNegativeHandler(CommonHandler): """ This is called by ask() when key='negative' Test that an expression is less (strict) than zero. ...
{"hexsha": "076ac079a18a2c7d4e2b17afb17a99cc417dd6aa", "size": 5970, "ext": "py", "lang": "Python", "max_stars_repo_path": "sympy/assumptions/handlers/order.py", "max_stars_repo_name": "eriknw/sympy", "max_stars_repo_head_hexsha": "b7544e2bb74c011f6098a7e886fd77f41776c2c4", "max_stars_repo_licenses": ["BSD-3-Clause"], ...
// // Licensed to Green Energy Corp (www.greenenergycorp.com) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Green Enery Corp licenses this file // to you under the Apache License, Version 2.0 (the // "...
{"hexsha": "a8ebcdbb0e372d49a343eb2cb1aeaa2eb9dcd11c", "size": 4454, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "TestAPL/TestCommandTypes.cpp", "max_stars_repo_name": "rahul-sachdev/DNPSimulator", "max_stars_repo_head_hexsha": "d78f6a3f2fe3b706fe73c163173f06c55af35b1e", "max_stars_repo_licenses": ["ECL-2.0", "...
"""This module provides tools to transform nfpcaps into csv and generate the dataset to make the predictions""" from . import CommonTools import os import operator import numpy as np def nfpcapsToCSV(locationToSaveTw, nfpcapLocation): print("::::::::::::::::::::::::::::") print(":::: TRANSFORMING ::::") p...
{"hexsha": "18198c219ae82bdb62b9506bfa32afc6ac2fb348", "size": 5458, "ext": "py", "lang": "Python", "max_stars_repo_path": "Botnets/App/App Web/backend/Modules/DataMining/TimeWindowTools.py", "max_stars_repo_name": "i2tResearch/Ciberseguridad_web", "max_stars_repo_head_hexsha": "ac3dd934a60628532e3538369cb145d9a8f33e4f...
[STATEMENT] lemma "{P} R {> Q} = (\<forall>s t. s \<in> P \<longrightarrow> (s, t) \<in> R \<longrightarrow> t \<in> Q)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. {P} R {> Q} = (\<forall>s t. s \<in> P \<longrightarrow> (s, t) \<in> R \<longrightarrow> t \<in> Q) [PROOF STEP] by (auto simp add: PO_hoare_defs)
{"llama_tokens": 135, "file": "Consensus_Refined_Refinement", "length": 1}
import pandas as pd import numpy as np from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score import joblib dataset = pd.read_csv('Processed Dataset.csv') X = dataset[['Gender', 'Age', 'Height', 'Weight', 'Duration', 'Heart_Rate', 'B...
{"hexsha": "775e16fa67782fb97ecad46c5c5a7189d7cfeae0", "size": 719, "ext": "py", "lang": "Python", "max_stars_repo_path": "model/train.py", "max_stars_repo_name": "saputhebeast/my-calaries", "max_stars_repo_head_hexsha": "2469a8eecc0ad802121bfb6bafd86746a7a2be78", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import sklearn import pandas import numpy import nltk import dill import eli5 print('All packages were imported successfully')
{"hexsha": "d523424bac48e6cd24a5c7928e3b1a52ddd39b42", "size": 127, "ext": "py", "lang": "Python", "max_stars_repo_path": "docker/sklearn/verify.py", "max_stars_repo_name": "bkschmoll-uptycs/dockerfiles", "max_stars_repo_head_hexsha": "ba79c07df7f6e41484d4b6b4d2c0d857e2205a0b", "max_stars_repo_licenses": ["MIT"], "max_...
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
{"hexsha": "6a2fe25c372584d48fbd2f54319ad4391b9afca0", "size": 15216, "ext": "py", "lang": "Python", "max_stars_repo_path": "idaes/generic_models/properties/core/eos/ideal.py", "max_stars_repo_name": "adowling2/idaes-pse", "max_stars_repo_head_hexsha": "38ddfdc3e016a515e556aa3376e2252f7342352f", "max_stars_repo_license...
import numpy as np import time from PINNs.create_example_parameters import create_example_parameters from PINNs.create_data import create_data from PINNs.PinnModel import PinnModel def run_system_identification(): # load or create a file with all simulation parameters such that a simulation is repeata...
{"hexsha": "5a89539c76c3ff9b099b683f8cb95b501f4b759d", "size": 1898, "ext": "py", "lang": "Python", "max_stars_repo_path": "PINNs/run_system_identification.py", "max_stars_repo_name": "jmontalvo94/PINN_system_identification", "max_stars_repo_head_hexsha": "c3742a7c88ea1039982e37ee630800f2e4b7c246", "max_stars_repo_lice...
import numpy as np def hpdi(samples, prob): """Compute highest density interval from a sample of representative values, estimated as the shortest credible interval. Args: samples (np.array): samples from a distribution prob (float): credible mass (i.e. 0.95) Returns: tuple: h...
{"hexsha": "f50410375abd2991c6592d96201d0f06e4ec7686", "size": 1858, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/rethinking/utils.py", "max_stars_repo_name": "IamGianluca/rethinking", "max_stars_repo_head_hexsha": "2384c685ea0916c4c1f73651bd68cfb70dbf0615", "max_stars_repo_licenses": ["MIT"], "max_stars_...
theory SPS imports spf.SPFcomp begin subsection \<open>SPS \label{sec:sps}\<close> text\<open>The behaviour of under-specified or nondeterministic components can often not be modeled by a single \gls{spf} but by a set of \Gls{spf}. Similar to the \gls{spf} type, we define \gls{sps} type as a type synonym.\<close...
{"author": "yyisgladiator", "repo": "demo", "sha": "2a57300dfa7268721c78c233ee6b0a5454acce1f", "save_path": "github-repos/isabelle/yyisgladiator-demo", "path": "github-repos/isabelle/yyisgladiator-demo/demo-2a57300dfa7268721c78c233ee6b0a5454acce1f/src/sps/SPS.thy"}
import pandas as pd import numpy as np # Example usage: x = tex_table(df, textable_file="testlatextable.txt", bold='min') def tex_table(df, textable_file, bold = None, nan_char = " x ", max_digits = 4): """ This function is only intended for fully numerical tables (dataset x frameworks comparison). Datas...
{"hexsha": "f787ed21aba9ce3fe0f0fcc84587cc4247ab35ac", "size": 2575, "ext": "py", "lang": "Python", "max_stars_repo_path": "autogluon_utils/benchmarking/evaluation/tex_table.py", "max_stars_repo_name": "jwmueller/autogluon-benchmarking", "max_stars_repo_head_hexsha": "28f35188a65c5fb37d4950fa9657ea84c9163049", "max_sta...
! ! The Laboratory of Algorithms ! ! The MIT License ! ! Copyright 2011-2015 Andrey Pudov. ! ! Permission is hereby granted, free of charge, to any person obtaining a copy ! of this software and associated documentation files (the 'Software'), to deal ! in the Software without restriction, including without limitation ...
{"hexsha": "91085d476e8bac4b9ec65337ffcbe041a8f0ba87", "size": 1751, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "Features/Inheritance/Circle.f", "max_stars_repo_name": "andreypudov/Algorithms", "max_stars_repo_head_hexsha": "9693efa0abed30a38fcb9c3f7eebbd5b92b734f5", "max_stars_repo_licenses": ["MIT"], "max_...
r=0.28 https://sandbox.dams.library.ucdavis.edu/fcrepo/rest/collection/sherry-lehmann/catalogs/d7dg6x/media/images/d7dg6x-023/svc:tesseract/full/full/0.28/default.jpg Accept:application/hocr+xml
{"hexsha": "e0d5f275d6b7860ec398b68de789a67f9a514f22", "size": 195, "ext": "r", "lang": "R", "max_stars_repo_path": "ark_87287/d7dg6x/d7dg6x-023/rotated.r", "max_stars_repo_name": "ucd-library/wine-price-extraction", "max_stars_repo_head_hexsha": "c346e48b5cda8377335b66e4a1f57c013aa06f1f", "max_stars_repo_licenses": ["...
import numpy as np import matplotlib.pyplot as plt positions = np.loadtxt("test-positions.txt") plt.plot(positions[:, 0], positions[:, 1]) plt.show()
{"hexsha": "3c681b0bc7f836e8f6d34a1bb3d8d21631c377df", "size": 152, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/LanderApp/test.py", "max_stars_repo_name": "LeoMaden/MarsLander", "max_stars_repo_head_hexsha": "d5b2e1f6c4520280c09cd22a0aeaeded89cc906e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars...
\section{Design} \label{designsection} \begin{figure}[htbp] \centering \fbox{\includegraphics[width=\linewidth]{images/datapipeline.png}} \caption{Data Pipeline.} \label{fig:datapipeline} \end{figure} Figure \ref{fig:datapipeline} shows the overall data pipeline for the project. The data pipeline has three important ...
{"hexsha": "ac0a0c319c1a677a5c483e75902db1029de4cf0f", "size": 5284, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "project/S17-IR-P005/report/design.tex", "max_stars_repo_name": "cloudmesh/sp17-i524", "max_stars_repo_head_hexsha": "42dd11b914c03c741dad8a8505c3e091dc6ec412", "max_stars_repo_licenses": ["Apache-2....
<a href="https://colab.research.google.com/github/janchorowski/ml_uwr/blob/fall2019/assignment4/Assignment4.ipynb" target="_parent"></a> **Submission deadline:** * **Regular problems: last lab session before or on Monday, 9.13.2020b** * **Bonus problems: Last lab during semester** **Points: 5 + 9 bonus points** Plea...
{"hexsha": "a5afec979183c72b1b6cd8801caa013a71feddca", "size": 168550, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "assignment4/Assignment4.ipynb", "max_stars_repo_name": "iCarrrot/ML", "max_stars_repo_head_hexsha": "05177012d36ca64a5b2730287b3ae5b086306197", "max_stars_repo_licenses": ["MIT"], "...
/- Given any two propositions, P and Q, we can form the proposition, P → Q. That is the syntax of an implications. If P and Q are propositions, we read P → Q as P implies Q. A proof of a proposition, P → Q, is a program that that converts any proof of P into a proof of Q. The type of such a program is P → Q. -/ ...
{"author": "kevinsullivan", "repo": "cs-dm", "sha": "bfd2f5fd2612472e15bd970c7870b5d0dd73bd1c", "save_path": "github-repos/lean/kevinsullivan-cs-dm", "path": "github-repos/lean/kevinsullivan-cs-dm/cs-dm-bfd2f5fd2612472e15bd970c7870b5d0dd73bd1c/04_Implication/00_intro.lean"}
function trainfunction2d(func,x,y) if func == 1 a1 = 3 #rand(Uniform(-10,10)) b1 = -4#rand(Uniform(-10,10)) u = a1*x + b1*y elseif func == 2 a = [0.9, 0.1, -0.4]#rand(Uniform(-1,1),3) b = [0.2, -0.6, -0.3]#rand(Uniform(-1,1),3) u = a[2]*sin(1*pi*y)+cos(1*pi*x) ...
{"hexsha": "c12e78f273ad72ebe3feea0bc56d8c983e3767c0", "size": 14012, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/functions/function2d.jl", "max_stars_repo_name": "HenrZu/SmartShockFinder.jl", "max_stars_repo_head_hexsha": "7a2881915c8ab78b9487b2e8d232e1bf8b3c04cb", "max_stars_repo_licenses": ["MIT"], "ma...
import numpy as np import torch from utilities.data_structures.Deque import Deque from utilities.data_structures.Max_Heap import Max_Heap class Prioritised_Replay_Buffer(Max_Heap, Deque): """维护一个 deque、max_heap 和 array 的数据结构。 deque 会跟踪哪些体验是最旧的,因此告诉我们一旦缓冲区开始变满要删除哪些体验。 max_heap 让我们可以使用最大 td_value 快速检索...
{"hexsha": "72e07bd22e86fee802a02d2c9c8cb0ee8e4bf799", "size": 7963, "ext": "py", "lang": "Python", "max_stars_repo_path": "Unified/utilities/data_structures/Prioritised_Replay_Buffer.py", "max_stars_repo_name": "Crazyalltnt/RL-Alogorithms-Implement", "max_stars_repo_head_hexsha": "27905f1c1890b1aff907564230b4ec0c22e60...
# tests for shock capturing import EulerEquationMod: AbstractShockSensor, AbstractShockCapturing function test_shocksensorPP() @testset "Shock sensor PP" begin opts = read_input_file("input_vals_jac2d.jl") opts["order"] = 2 delete!(opts, "calc_jac_explicit") opts["force_solution_complex"] = true ...
{"hexsha": "c1c5d304a7aa889e0aea02973ee2976e45bbbcc8", "size": 66800, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/euler/test_shock_capturing.jl", "max_stars_repo_name": "OptimalDesignLab/PDESolver.jl", "max_stars_repo_head_hexsha": "328ef45f764ab99a9d5cc3c5e4c0a4c56b263279", "max_stars_repo_licenses": ["...
from hazel.chromosphere import Hazel_atmosphere from hazel.photosphere import SIR_atmosphere from hazel.parametric import Parametric_atmosphere from hazel.stray import Straylight_atmosphere from hazel.configuration import Configuration from hazel.io import Generic_output_file from collections import OrderedDict from ha...
{"hexsha": "aa0df0366b432f0026a8ed2e19ca32e7201235b5", "size": 93249, "ext": "py", "lang": "Python", "max_stars_repo_path": "hazel/model.py", "max_stars_repo_name": "aasensio/hazel2", "max_stars_repo_head_hexsha": "d9b551915f5d2bb399e03b054dffe4ca42fedeb5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 17, "ma...
###################################################################### # max_trajectory.jl # tries to maximize phi(x) collected # TODO: this is a wreck. clean it so it looks like clerc_trajectory. ###################################################################### function max_trajectory(em::ErgodicManager, tm::Tra...
{"hexsha": "5375f3d6f7c4ebb867d67500b66e40bdd87da918", "size": 2413, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/trajectory_generation/max.jl", "max_stars_repo_name": "josh0tt/ErgodicControl.jl", "max_stars_repo_head_hexsha": "aa9235ea6eca441e2239375f8745dfd2b30ef682", "max_stars_repo_licenses": ["MIT"], ...
import pandas as pd import numpy as np from time import time from itertools import combinations_with_replacement import pickle import mapping_career_causeways.compare_nodes_utils as compare_nodes_utils import os import boto3 from ast import literal_eval import sys ## SETUP # Get the skill integer to check if len(sys....
{"hexsha": "480f32d7663d1a84d46672f38b84da6f8c057278", "size": 4560, "ext": "py", "lang": "Python", "max_stars_repo_path": "mapping_career_causeways/scripts/upskilling_aws_scripts/skill_perturbation_essential_C.py", "max_stars_repo_name": "bb20417/mapping-career-causeways", "max_stars_repo_head_hexsha": "cb8c57a2c4a0ab...
```python import psi4 from psi4 import * from psi4.core import * import numpy as np import os sys.path.append('os.getcwd()') from opt_helper import stre, bend, intcosMisc, linearAlgebra ``` ## The Step Back-transformation An optimization algorithm carried out in internal coordinates (see, e.g., the RFO tutorial) will ...
{"hexsha": "2ffa88155d34e02cd25aa73d1c3f8a031c9991e2", "size": 9456, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "Example/Psi4Numpy/13-GeometryOptimization/13e_Step-Backtransformation.ipynb", "max_stars_repo_name": "yychuang/109-2-compchem-lite", "max_stars_repo_head_hexsha": "cbf17e542f9447e89fb...
from scipy.spatial import cKDTree import numpy as np from matplotlib.tri import Triangulation,LinearTriInterpolator from scipy import interpolate import sys import time def _checkBounds(_datetimes,datetimes): """ """ dt_min=np.min(datetimes) dt__min=np.min(_datetimes) dt_max=np.max(datetimes) dt__max=np.ma...
{"hexsha": "49cfe93b2c9f76b2c48c009bb5aad0706c75f05f", "size": 1464, "ext": "py", "lang": "Python", "max_stars_repo_path": "s3netcdfapi/data/interpolation.py", "max_stars_repo_name": "meracan/s3-netcdf-api", "max_stars_repo_head_hexsha": "920d09ef7b1a205230ea2c76eabcb4853616992c", "max_stars_repo_licenses": ["MIT"], "m...
# TODO TIP: Segmentation is just one of many approaches to object localization. import os from argparse import ArgumentParser import cv2 import numpy as np import torch import tqdm from segmentation.models import get_model as get_segmentation_model from inference_utils import prepare_for_segmentation, get_boxes_from_...
{"hexsha": "8491af2b0232e9e89bec867aa2a13e32d098a3c0", "size": 4443, "ext": "py", "lang": "Python", "max_stars_repo_path": "2_term/made_2021_computer_vision/homeworks/02/scripts/create-submission.py", "max_stars_repo_name": "Ilyabasharov/made_mail.ru", "max_stars_repo_head_hexsha": "a81bfd874ab80eb8c7eaad8a4acf723f327f...
import neuroglancer import numpy as np import networkx as nx from .graph_source import SkeletonSource import logging import copy logger = logging.getLogger(__name__) def add_trees_no_skeletonization( s, trees, node_id, name, dimensions, visible=False, color=None ): mst = [] for u, v in trees.edges(): ...
{"hexsha": "4c746fb921d876e8bc870667f918266a34cba226", "size": 2524, "ext": "py", "lang": "Python", "max_stars_repo_path": "neuroglancer_graphs/graphs.py", "max_stars_repo_name": "pattonw/neuroglancer_graphs", "max_stars_repo_head_hexsha": "3fb6dbfa8d4ef3e2012eb3007063b8bab4af8ebc", "max_stars_repo_licenses": ["MIT"], ...
function Base.parse(::Type{Rational{T}}, x::AbstractString) where {T <: Integer} ms, ns = split(x, '/', keepempty = false) m = parse(T, ms) n = parse(T, ns) return m // n end Base.parse(::Type{Rational}, x::AbstractString) = parse(Rational{Int32}, x) function get_ratio(x::AbstractString) r = trypa...
{"hexsha": "dbffcb15edf0bf103003a2e9c9e0547f41dd207b", "size": 435, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/helper/Ratios.jl", "max_stars_repo_name": "ORNL/ProxyIO.jl", "max_stars_repo_head_hexsha": "ea1eedfe6acda0d7adea86f82f3aeb632cc6cfdd", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
/* Copyright (c) 2010-2015, Delft University of Technology * 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 ...
{"hexsha": "051dc777deda98a9cd4b0fe8bb801b37d8f6bc3c", "size": 12932, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "Tudat/Astrodynamics/MissionSegments/multiRevolutionLambertTargeterIzzo.cpp", "max_stars_repo_name": "JPelamatti/ThesisTUDAT", "max_stars_repo_head_hexsha": "b94ce35fb7c8fa44ae83238e296a979dfa3adfe8...
$NetBSD: patch-src_pingus_components_slider__box.hpp,v 1.1 2019/05/12 06:17:30 triaxx Exp $ * Port to Boost.Signals2. --- src/pingus/components/slider_box.hpp.orig 2011-12-24 21:46:47.000000000 +0000 +++ src/pingus/components/slider_box.hpp @@ -17,7 +17,7 @@ #ifndef HEADER_PINGUS_PINGUS_COMPONENTS_SLIDER_BOX_HPP #d...
{"hexsha": "4697dc4a6a963bae9a436b3c55c3ed816f613682", "size": 672, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "source/pkgsrc/games/pingus/patches/patch-src_pingus_components_slider__box.hpp", "max_stars_repo_name": "Scottx86-64/dotfiles-1", "max_stars_repo_head_hexsha": "51004b1e2b032664cce6b553d2052757c28608...
import math import numpy as np import matplotlib.pyplot as plt from scipy import integrate, optimize class polynomial(): """class for a polynomial function """ def __init__(self, D=[0, -math.sqrt(3)/3, math.sqrt(3)/3, 0], chord = None, color = 'k'): self.D = D self.chord =...
{"hexsha": "4b9d8360a86a6dfe315ea55933a2bac0c3a1e271", "size": 15386, "ext": "py", "lang": "Python", "max_stars_repo_path": "aeropy/geometry/parametric.py", "max_stars_repo_name": "carsecond/AeroPy", "max_stars_repo_head_hexsha": "81685f364abd9536fc62dce114f14bef191dab8c", "max_stars_repo_licenses": ["MIT"], "max_stars...
/*============================================================================== Copyright (c) 2016, 2017, 2018 Matt Calabrese Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =======================================...
{"hexsha": "500ae75bf945850719db5dba3b76a39fd378dc36", "size": 988, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/argot/receiver/graphviz/detail/property_decl.hpp", "max_stars_repo_name": "mattcalabrese/argot", "max_stars_repo_head_hexsha": "97349baaf27659c9dc4d67cf8963b2e871eaedae", "max_stars_repo_lice...
import numpy as np from simplexlib.src.table import Table, Simplex, V from .tree import Node, Edge class BranchAndBound: @classmethod def resolve(cls, table: Table, prev: np.float64 = None) -> Node: summary = Simplex.resolve(table) if not summary.fixed or not summary.solved: ret...
{"hexsha": "68f5c80c8fcf1836d363646710264a7b1ea7eb63", "size": 1372, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/branch_and_bound.py", "max_stars_repo_name": "mocurin/dt-lab-03", "max_stars_repo_head_hexsha": "575a547ac349fc1dce020ab4964025f90f199644", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
@everywhere using BioSequences @everywhere using DataStructures: DefaultDict @everywhere function twin(km) DNAKmer(reverse_complement(DNASequence(km))) end function contig_to_string(c) return "$(c[1])" * join(["$(x[end])" for x in c[2:end]]) end @everywhere function get_contig(::Type{DNAKmer{k}}, kmers, km) wh...
{"hexsha": "21e6975b0d6f76ed684b5f781fb3a35c9e2c0533", "size": 5494, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/db_graph.jl", "max_stars_repo_name": "liberuser/MentaLiST", "max_stars_repo_head_hexsha": "fbfa6b8cbb8ef7fa823731d32ecfcb3e5af1bed5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 25, ...
if lowercase(get(ENV, "CONCURRENTCOLLECTIONS_JL_ASSERTION", "false")) == "true" import ConcurrentCollections ConcurrentCollections.Implementations.enable_assertion() @assert ConcurrentCollections.Implementations.assertion_enabled() @info "ConcurrentCollections: Assertion enabled" else @info "Concurr...
{"hexsha": "f5a2dba92beb5bd1983d85d903727783e1975ead", "size": 480, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "JuliaConcurrent/ConcurrentCollections.jl", "max_stars_repo_head_hexsha": "09a8cbe25a1a0d3cb9d0fb0d03cad60a7d5ccebd", "max_stars_repo_licenses": ["MIT"], "m...
program compare integer a, b read(*,*) a, b if (a .lt. b) then write(*, *) a, ' is less than ', b else if (a .eq. b) then write(*, *) a, ' is equal to ', b else if (a .gt. b) then write(*, *) a, ' is greater than ', b end if end
{"hexsha": "4685bb7c9b42d0cc26119f099a8c69fffe16b086", "size": 237, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "Task/Integer-comparison/Fortran/integer-comparison-3.f", "max_stars_repo_name": "LaudateCorpus1/RosettaCodeData", "max_stars_repo_head_hexsha": "9ad63ea473a958506c041077f1d810c0c7c8c18d", "max_star...
from similarities.similarity import Similarity from scipy.spatial.distance import cosine from pipeline.normalizer import words class COSSimilarity(Similarity): """Cosine TF-based similarity.""" def similarity(self, x, y): d = {} wx = words(x) wy = words(y) for w in wx: ...
{"hexsha": "b1f3a6e763a6811bffbab14f03a8670233e8ae26", "size": 594, "ext": "py", "lang": "Python", "max_stars_repo_path": "similarities/cos.py", "max_stars_repo_name": "ekiuled/pairwise-similarities", "max_stars_repo_head_hexsha": "db2f909a74ed2d9296b1a3814facb3e5a0efe28d", "max_stars_repo_licenses": ["Apache-2.0"], "m...
function nonLinChem(dy,y,p,t) dy[1] = -y[1] dy[2] = y[1]-(y[2])^2 dy[3] = (y[2])^2 end y0 = [1.0;0.0;0.0] tspan = (0.0,20) nlc_analytic(u0,p,t) = [exp(-t); (2sqrt(exp(-t))besselk(1,2sqrt(exp(-t)))-2besselk(1,2)/besseli(1,2)*sqrt(exp(-t))besseli(1,2sqrt(exp(-t))))/(2besselk(0,2sqrt(exp(-t)))+(2besselk(1,2)/bessel...
{"hexsha": "e2406cf468f195dcc92b131f5acbaff3f659b5fb", "size": 681, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ode/nonlinchem.jl", "max_stars_repo_name": "devmotion/DiffEqProblemLibrary.jl", "max_stars_repo_head_hexsha": "7aa6e819b3aa58f1f6e42f7e2d2c69351e09f5c9", "max_stars_repo_licenses": ["MIT"], "max...
import numpy as np import pytest import learnmolsim as lms @pytest.fixture def state(): s = lms.state.State(2,lms.state.Box(10.0),mass=10.0) s.positions = [[1,1,1],[2,2,2]] s.velocities = [[1,-1,1],[-2,2,-2]] s.energies = [3,-4] s.forces = [[1,2,3],[-1,-2,-3]] return s @pytest.fixture def ther...
{"hexsha": "e7400a373093ae04fca36bcc8cd73ffd3939276a", "size": 820, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_thermodynamics.py", "max_stars_repo_name": "mayukh33/Learn_molecularsim", "max_stars_repo_head_hexsha": "020badd574287c8a89796efa05616762c5153e10", "max_stars_repo_licenses": ["BSD-3-Cla...
import numpy as np from numpy.random import RandomState import torch from torch.autograd import Variable import torch.nn.functional as F import torch.nn as nn from torch.nn.parameter import Parameter from torch.nn import Module fr...
{"hexsha": "990820adf8a432ef8be4eddea8c16b8670202a6f", "size": 22229, "ext": "py", "lang": "Python", "max_stars_repo_path": "sound-event-detection/hypercomplex_layers.py", "max_stars_repo_name": "Javesun99/HyperNets", "max_stars_repo_head_hexsha": "6ebe64c440c7bc1e7e2ea39c898fe90cf850d61e", "max_stars_repo_licenses": [...
/* GStreamer * Copyright (C) <2005> Thomas Vander Stichele <thomas at apestaart dot org> * Copyright (C) <2006> Tim-Philipp Müller <tim centricular net> * * gstutils.c: Unit test for functions in gstutils * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lib...
{"hexsha": "18ba199b98dc6926def327925da14cbc18b194ab", "size": 67607, "ext": "c", "lang": "C", "max_stars_repo_path": "third_party/gstreamer/tests/check/gst/gstutils.c", "max_stars_repo_name": "isabella232/aistreams", "max_stars_repo_head_hexsha": "209f4385425405676a581a749bb915e257dbc1c1", "max_stars_repo_licenses": [...
#!/usr/bin/python # coding:utf-8 ''' Created on 2017-05-18 Update on 2017-05-18 Author: Peter Harrington/1988/片刻 GitHub: https://github.com/apachecn/MachineLearning ''' from numpy import random, mat, eye ''' # NumPy 矩阵和数组的区别 NumPy存在2中不同的数据类型: 1. 矩阵 matrix 2. 数组 array 相似点: 都可以处理行列表示的数字元素 不同点: 1. 2个数据...
{"hexsha": "c45ad8fcecfaac94d1a17e9f44eb8ed62915e717", "size": 1312, "ext": "py", "lang": "Python", "max_stars_repo_path": "ML-in-Action/MachineLearning-dev/src/py2.x/ML/1.MLFoundation/NumPy.py", "max_stars_repo_name": "cherisyu/ML_in_Action", "max_stars_repo_head_hexsha": "8c1019de911e7fb1bbab973067213f5f62ab9dcd", "m...
import os, subprocess, glob import json import numpy as np week_id = "week2/kasina/" outdir = f"./submissions/week_2/kasina/" files = glob.glob(os.path.join(week_id+'/','**',"*.ipynb")) for f in files: subprocess.call(["jupyter-nbconvert",f"--output-dir={outdir}","--to","HTML",f])
{"hexsha": "2c4f527d876aff312a5ce5936d727800572b3223", "size": 287, "ext": "py", "lang": "Python", "max_stars_repo_path": "temp_grading.py", "max_stars_repo_name": "naveenmoto/lablet102", "max_stars_repo_head_hexsha": "24de9daa4ae75cbde93567a3239ede43c735cf03", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, ...
module EMLcompressor using DanaTypes using DotPlusInheritance using Reexport @reexport using ...streams.EMLstreams import EMLtypes.length include("compressor/centrifugal_compressor.jl") end
{"hexsha": "216beaecd20d5d3f1c7613b431273c5ec6002a72", "size": 195, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "JuliaEMSOModels/pressure_changers/compressor.jl", "max_stars_repo_name": "DANA-Laboratory/EMSOModelLibrary.jl", "max_stars_repo_head_hexsha": "e28904cc1bdf8f67c6839ad35b4658dd399c0e47", "max_stars_r...
""" Parallel Tests for the SimpleComm class Copyright 2017, University Corporation for Atmospheric Research See the LICENSE.txt file for details """ from __future__ import print_function, unicode_literals import unittest import numpy as np from mpi4py import MPI from asaptools import simplecomm from asaptools.part...
{"hexsha": "c1585ff2eee12bb5f8a265d46344c9f88790242d", "size": 12701, "ext": "py", "lang": "Python", "max_stars_repo_path": "asaptools/tests/simpleCommParTests.py", "max_stars_repo_name": "NCAR/ASAPPyTools", "max_stars_repo_head_hexsha": "6501dce2d253a3305ce300d67f49b5dc930a7c08", "max_stars_repo_licenses": ["Apache-2....