text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
In this tutorial we simulate dynamics of the Heisenberg model
\begin{equation}\label{eq:1}
\hat{H} = J_\text{ex} \sum_{ i,\delta }\hat{S}_i \cdot \hat{S}_{i+\delta},
\end{equation}
defined on a rectangular lattice with $6\times 2$ spins, and where $\delta = [\pm 1,0],\,[0,\pm 1]$. Dynamics is excited via the followi... | {"hexsha": "7cdb8590167f9c7cb05d3dc11afaeeffadb855db", "size": 229179, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "Examples/dynamics/tutorial_dyn.ipynb", "max_stars_repo_name": "GiamFbn/MyULTRAFAST", "max_stars_repo_head_hexsha": "719654bf1692ae3d55bef2cbae3a424e623a55ff", "max_stars_repo_licens... |
[STATEMENT]
lemma upper_right_closed:
assumes "\<forall>c\<in>\<X>. real (k c) < u c" "u \<in> R" "R \<in> \<R>" "t \<ge> 0"
shows "u \<oplus> t \<in> R"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. u \<oplus> t \<in> R
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. u \<oplus> t \<in> R... | {"llama_tokens": 1600, "file": "Probabilistic_Timed_Automata_PTA", "length": 16} |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import itertools
import copy
import pytest
import numpy as np
from astropy.time import Time
from astropy.utils import iers
@pytest.fixture(scope="module", params=[True, False])
def masked(request):
# Could not figure out a better way to parametriz... | {"hexsha": "608133e7d5fd4483072bf75564c9f46b6f5a85d1", "size": 21032, "ext": "py", "lang": "Python", "max_stars_repo_path": "astropy/time/tests/test_methods.py", "max_stars_repo_name": "guntbert/astropy", "max_stars_repo_head_hexsha": "f2d2add09e5b1638b2698f19a4d46fcca19e82be", "max_stars_repo_licenses": ["BSD-3-Clause... |
import numpy as np
from grid2op.dtypes import dt_float
from grid2op.Reward import BaseReward
class FlowLimitAndBlackoutReward(BaseReward):
def __init__(self):
BaseReward.__init__(self)
def initialize(self, env):
self.reward_min = dt_float(-env.backend.n_line)
self.reward_max = dt_float... | {"hexsha": "67d8b92c310c9d60f62b79fd48e1c916a2b6b92a", "size": 1341, "ext": "py", "lang": "Python", "max_stars_repo_path": "rewards.py", "max_stars_repo_name": "jmontalvo94/02456_l2rpn", "max_stars_repo_head_hexsha": "943cd18031433193dd098d651924b219f373f7ac", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "... |
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | {"hexsha": "8a29bfb984fb6e5104d6e57c5108d7dc4abad0d7", "size": 2252, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/st/ops/cpu/test_mish.py", "max_stars_repo_name": "httpsgithu/mindspore", "max_stars_repo_head_hexsha": "c29d6bb764e233b427319cb89ba79e420f1e2c64", "max_stars_repo_licenses": ["Apache-2.0"], ... |
"""AoC 2018 Day 20: A Regular Map"""
import re
from collections import OrderedDict
import numpy as np
# Part 1
def reduce_path(path):
new_path = ''
# Find the innermost parenthesis group
innermost = re.compile(r'(\([NSEW|]*?\))')
previous_start = 0
for m in innermost.finditer(path):
new... | {"hexsha": "88f72e48d370ffa9c985063b610480ca23e6fb5a", "size": 2183, "ext": "py", "lang": "Python", "max_stars_repo_path": "day20.py", "max_stars_repo_name": "FlorianGD/adventofcode_2018", "max_stars_repo_head_hexsha": "cfe452b823b8d24a20857becf7974c448cd67f68", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu... |
'''This example demonstrates the use of Convolution1D for text classification.
Gets to 0.89 test accuracy after 2 epochs.
90s/epoch on Intel i5 2.4Ghz CPU.
10s/epoch on Tesla K40 GPU.
'''
from __future__ import print_function
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.preprocessing im... | {"hexsha": "46926d7613c2bf737818217ff67faefa19242d65", "size": 2739, "ext": "py", "lang": "Python", "max_stars_repo_path": "keras1.2/keras_example/imdb_cnn_gpu.py", "max_stars_repo_name": "sandeep-krishnamurthy/keras-mxnet-benchmarks", "max_stars_repo_head_hexsha": "74b7f57940a8ec71a74e10afe91d9fb15477e9b1", "max_stars... |
from typing import Any, Dict
import attr
import numpy as np
from nlisim.coordinates import Voxel
from nlisim.diffusion import apply_diffusion
from nlisim.grid import RectangularGrid
from nlisim.module import ModuleModel, ModuleState
from nlisim.modules.molecules import MoleculesState
from nlisim.random import rg
from... | {"hexsha": "33973f96703d909bae43db49f2855c884b1de733", "size": 4903, "ext": "py", "lang": "Python", "max_stars_repo_path": "nlisim/modules/il10.py", "max_stars_repo_name": "jbeezley/simulation-hello-world", "max_stars_repo_head_hexsha": "b4e1258de9c7601af1701041fa39f8f6c5e5a61e", "max_stars_repo_licenses": ["Apache-2.0... |
from text_summaries import summarize, segment
from image_captions import captions
import pytesseract
import cv2
import numpy as np
def process(image_path):
### 1: IMAGE SEGMENTATION ###
'''
The first section of this code extracts the coordinates of all of the image
regions from within a given image (d... | {"hexsha": "a26cec78bc98afa00b5947771c79db757a97a2f9", "size": 2691, "ext": "py", "lang": "Python", "max_stars_repo_path": "process.py", "max_stars_repo_name": "saidaibrg/comprehend", "max_stars_repo_head_hexsha": "00cb385288b8f4cc10e5fa4f1deff19c48184d9a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max... |
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
import random
import torch
print('目标函数 f(x) = x*x')
def gd(eta):
x = 10
results = [x]
for i in range(10):
x -= eta * 2 * x # 导数
results.append(x)
print('epoch 10, x:', x)
return results
... | {"hexsha": "2e229295c1c19d2eac25033a30a3e12d263f8bb0", "size": 1690, "ext": "py", "lang": "Python", "max_stars_repo_path": "d2l/38_gradient_descent.py", "max_stars_repo_name": "wdxtub/deep-learning-note", "max_stars_repo_head_hexsha": "47b83a039b80d4757e0436d5cbd2fa3037de3904", "max_stars_repo_licenses": ["MIT"], "max_... |
\documentclass{article}
\usepackage{mathrsfs,amsmath}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{graphicx}
\graphicspath{ {./assets/} }
\usepackage[margin=1.4in]{geometry}
\title{Project \#2 Writeup | CS 335}
\author{Jared Dyreson\\
California State University, Fullerton}
\DeclareRobustComman... | {"hexsha": "02374226faee05f629a3013aaa9c1d9a8039d0a2", "size": 6459, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "writeup/Writeup.tex", "max_stars_repo_name": "JaredsAlgorithms/FibblyWhibbly", "max_stars_repo_head_hexsha": "b4f5604f81a9b6253580ae156b00e1ff7c31f098", "max_stars_repo_licenses": ["MIT"], "max_star... |
'''
This code is automatically generated. Never edit it manually.
For details of generating the code see `rubi_parsing_guide.md` in `parsetools`.
'''
from sympy.external import import_module
matchpy = import_module("matchpy")
from sympy.utilities.decorator import doctest_depends_on
if matchpy:
from matchpy import... | {"hexsha": "1dbcca03c4ad8096f8c70433a1d81d9894693345", "size": 330595, "ext": "py", "lang": "Python", "max_stars_repo_path": "sympy/integrals/rubi/rules/tangent.py", "max_stars_repo_name": "FabianBall/sympy", "max_stars_repo_head_hexsha": "9d849ddfc45427fe7f6733ce4d18fa397d0f43a9", "max_stars_repo_licenses": ["BSD-3-Cl... |
import HappyTools.gui.progress_bar as progressbar
from HappyTools.gui.tooltip import ToolTip
from HappyTools.util.pdf import Pdf
from HappyTools.util.output import Output
from HappyTools.bin.chromatogram import Chromatogram
from HappyTools.bin.peak import Peak
import logging
from bisect import bisect_left, bisect_righ... | {"hexsha": "808cbd64e358079dbc965e9077e7dd4465151276", "size": 14302, "ext": "py", "lang": "Python", "max_stars_repo_path": "HappyTools/util/functions.py", "max_stars_repo_name": "glycoaddict/HappyTools", "max_stars_repo_head_hexsha": "c65efc9787919416d0b464c8c433a23a2c65afab", "max_stars_repo_licenses": ["Apache-2.0"]... |
import numpy as np
import pandas as pd
def f(group):
return group[group.y == 'yes']['y'].count()
# 1 - Dataset upload
df = pd.read_csv('dataset/bank_dataset.csv', sep=';')
print('-- Size before clean --')
print(f'Row: {df.shape[0]}')
print(f'Column: {df.shape[1]}', end='\n\n')
# 2 - Clean NaN values
df_clean =... | {"hexsha": "ab2f165c8b757f6576ed90dca0c1239947d53205", "size": 1428, "ext": "py", "lang": "Python", "max_stars_repo_path": "data_acquisition/main.py", "max_stars_repo_name": "prushh/data-analytics-exercises", "max_stars_repo_head_hexsha": "1be8155719e639fbda948ce27e367c45de91d66a", "max_stars_repo_licenses": ["Unlicens... |
function mandel(z)
c = z
maxiter = 80
for n = 1:maxiter
if abs(z) > 2
return n-1
end
z = z^2 + c
end
return maxiter
end
function randmatstat(t)
n = 5
v = zeros(t)
w = zeros(t)
for i = 1:t
a = randn(n,n)
b = randn(n,n)
c = r... | {"hexsha": "7ac2c8e3c7a16bbf20f654f748ecadbb4b00d976", "size": 509, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "sample-files/Julia.jl", "max_stars_repo_name": "MiincGu/DarkBint-syntax", "max_stars_repo_head_hexsha": "3ed5e72c6a0eb045cb6482020707571f1b0e9192", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
#!/usr/bin/env python
import numpy as np
import seaborn as sns
sns.set_style("whitegrid")
sns.set_palette(sns.color_palette("Greens", 8))
from scipy.ndimage.filters import gaussian_filter1d
for i in range(8):
# Create data
y = np.roll(np.cumsum(np.random.randn(1000, 1)),
np.random.randint(0, 10... | {"hexsha": "b2fe763d303145334c86b470b545e0d68ac9cadb", "size": 424, "ext": "py", "lang": "Python", "max_stars_repo_path": "ML/seaborn/lineplots/minimal.py", "max_stars_repo_name": "PepSalehi/algorithms", "max_stars_repo_head_hexsha": "1c20f57185e6324aa840ccff98e69764b4213131", "max_stars_repo_licenses": ["MIT"], "max_s... |
# -*- coding:utf-8 -*-
import argparse
import cv2
import numpy as np
import torch
from torch import nn
import torchvision
from src import models
from src.mtcnn.detector import detect_faces
from src.transforms import decode_preds
from src.utils import *
device = torch.device("cuda" if torch.cuda.is_available() else "... | {"hexsha": "db0c5a48db0ad7edf8f2a70c418c477c767a581d", "size": 3322, "ext": "py", "lang": "Python", "max_stars_repo_path": "camera.py", "max_stars_repo_name": "MysteryOfLove/Facial-Landmark-Detection", "max_stars_repo_head_hexsha": "dea9a756a8ae581e65b54652fa642febe83fce47", "max_stars_repo_licenses": ["BSD-2-Clause"],... |
import numpy as np
from tqdm import tqdm
from scipy.spatial.distance import cdist
class MFCent(object):
"""
Implementation of
"""
def __init__(self, metric):
self.metric = metric
if metric == 'l2':
self.metric = 'euclidean'
def fit(self, X, y):
self.X_train = X
self.y_train = y
#
self.clas... | {"hexsha": "fa7cf1ebac0b2b973c6b52c8a014b8f353d8a86b", "size": 1663, "ext": "py", "lang": "Python", "max_stars_repo_path": "mf/centbased.py", "max_stars_repo_name": "waashk/extended-pipeline", "max_stars_repo_head_hexsha": "1f8cdfcd1530a9dd502ea0d76d89b5010d19daf7", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
function proposals = calcselective_searchForIm( input,ssconfig)
colorTypes=ssconfig.params.colorTypes;
simFunctionHandles=ssconfig.params.simFunctionHandles;
ks=ssconfig.params.ks;
im_width=ssconfig.params.imWidth;
sigma=ssconfig.params.sigma;
minBoxWidth =ssconfig.params.minBoxWidth;
if(isstr(input))
im =... | {"author": "Cloud-CV", "repo": "object-proposals", "sha": "597a89520bc1b0b261420d7627b8c36439a24c7a", "save_path": "github-repos/MATLAB/Cloud-CV-object-proposals", "path": "github-repos/MATLAB/Cloud-CV-object-proposals/object-proposals-597a89520bc1b0b261420d7627b8c36439a24c7a/selective_search/API/calcselective_searchFo... |
# -*- coding: utf-8 -*-
"""styleClassificationFastaiCSV.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1XR7_7xGULam4mq-BwlT_MzmaWieLbC-s
# CS121 - Style Model Training
## Using data from ArtGAN Github and after running cleanStyleCsv.py to get a ... | {"hexsha": "1138d68efe0fac7850e599049a6c4f61d34fc54d", "size": 3679, "ext": "py", "lang": "Python", "max_stars_repo_path": "classify_style.py", "max_stars_repo_name": "kiphenglim/FA20-CS121-fastai", "max_stars_repo_head_hexsha": "663687b838434a45e4039bd3f8de022837bdcb95", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
from typing import Optional
import os
import logging
from functools import lru_cache
from pathlib import Path
import s3fs
import sagemaker
from botocore.exceptions import NoCredentialsError
@lru_cache(maxsize=1)
def s3_blackbox_folder(s3_root: Optional[str] = None):
if s3_root is None:
if "AWS_DEFAULT_RE... | {"hexsha": "b47a05e1942f7db987308676f7d4c06149fbe3d7", "size": 1334, "ext": "py", "lang": "Python", "max_stars_repo_path": "syne_tune/blackbox_repository/conversion_scripts/utils.py", "max_stars_repo_name": "awslabs/syne-tune", "max_stars_repo_head_hexsha": "1dd8e157477b86db01047a9a7821780ea04389bc", "max_stars_repo_li... |
# -*- coding: utf-8 -*-
"""
Copyright 2020 DR ROBIN RAFFE PRYCE JONES
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 re... | {"hexsha": "62db3dd0f9b90bb8e1c60b481924824a5cba6ce0", "size": 11031, "ext": "py", "lang": "Python", "max_stars_repo_path": "MyCustomLibraries/SpectraDA_Func_Def.py", "max_stars_repo_name": "rxj879/Spectra-Plot", "max_stars_repo_head_hexsha": "e61e30634ed6fc77cf2217b323276ce4fda0bba3", "max_stars_repo_licenses": ["Apac... |
#-*-Python-*-
# Created by buchanj at 19 Aug 2019 13:37
"""
This script is the interface script called by DAKOTA. It reads the DAKOTA
parameters file and writes the varied data back to a copy of the
user input file which can then be passed to the simulation code.
Once the simulation code has executed it recovers the... | {"hexsha": "bd2c818b9b54c39b45cc2560dc037d109b0b056b", "size": 3055, "ext": "py", "lang": "Python", "max_stars_repo_path": "user_interface/python/interface.py", "max_stars_repo_name": "ukaea/ALC_UQ", "max_stars_repo_head_hexsha": "a2747c94036b04f1279abb5683c6a225a878aea3", "max_stars_repo_licenses": ["Apache-2.0"], "ma... |
"""Prepare data for Plotly Dash."""
import numpy as np
import pandas as pd
def create_dataframe(inputStr="data/File"):
"""Create Pandas DataFrame from local CSV."""
print(inputStr)
if inputStr == "Start" or inputStr is None:
df = pd.DataFrame()
df["f"] = [1]
df["Re"] = [1]
... | {"hexsha": "30c54830cb5ec4c1f0249e73420051ff25562b76", "size": 553, "ext": "py", "lang": "Python", "max_stars_repo_path": "EISWebFit/plotlydash/data.py", "max_stars_repo_name": "borsboomT/EISWebFit", "max_stars_repo_head_hexsha": "c29aa5fa8f4755b0a974aa2914e5031c43ad3623", "max_stars_repo_licenses": ["MIT"], "max_stars... |
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 15 14:41:17 2019
@author: chaoz
"""
#Imports
import time
start = time.time()
import numpy as np
import os
import tensorflow as tf
from PIL import Image
import pandas as pd
os.chdir('./venv/models/research/object_detection/')
#Object detection imports
from ob... | {"hexsha": "18b55d29fe95a55ccd103431b924bc0a7f963693", "size": 5541, "ext": "py", "lang": "Python", "max_stars_repo_path": "test_code.py", "max_stars_repo_name": "chao0716/topbag", "max_stars_repo_head_hexsha": "f47557511f36260848f02a1e8151c8c2a0272f16", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": nul... |
import argparse
import glob
import numpy as np
import os
import sys
import requests
import torch
from basicsr.utils import imwrite
main_dir_path = "/".join(os.getcwd().split("/")[:-1])
sys.path.insert(1, main_dir_path)
from gfpgan import GFPGANer
def download_weights():
weights_files = ['https://github.com/Tence... | {"hexsha": "dbd445b8b4a421db22a225e6b61d80513408f0e1", "size": 2401, "ext": "py", "lang": "Python", "max_stars_repo_path": "api/utilx_api.py", "max_stars_repo_name": "naarkhoo/GFPGAN", "max_stars_repo_head_hexsha": "73559ec44a734fe084b6a0e28107295c5e98f335", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count... |
import os
import csv
import numpy as np
import NB
# Point to data directory here
# By default, we are pointing to '../data/'
data_dir = os.path.join('..','data')
# Read vocabulary into a list
# You will not need the vocabulary for any of the homework questions.
# It is provided for your reference.
with open(os.path.... | {"hexsha": "93dc48f550dbd3d94196f3d416404a8fa8312430", "size": 2592, "ext": "py", "lang": "Python", "max_stars_repo_path": "10601-hws/HW 3/handout/python/hw3_script.py", "max_stars_repo_name": "dfreilich/machine-learning-workspace", "max_stars_repo_head_hexsha": "a1b6e5bd84a4f5708461f3827d64e2bf5a32dffa", "max_stars_re... |
import random
import os
import numpy as np
import socket
import torch
from scipy import misc
from torch.utils.serialization import load_lua
class KTH(object):
def __init__(self, train, data_root, seq_len = 20, image_size=64, data_type='drnet'):
self.data_root = '%s/KTH/processed/' % data_root
self... | {"hexsha": "abb1e9da536ca02dc32b3e55a8cd34bf7d428ea0", "size": 3152, "ext": "py", "lang": "Python", "max_stars_repo_path": "data/kth.py", "max_stars_repo_name": "TMYuan/video-interpolation", "max_stars_repo_head_hexsha": "9f52ebf519a33756939b1a6f5c4e83e3270be578", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
#import modules
import pandas as pd
import numpy as np
#save file path as variable
budget1 = "budget_data_1.csv"
budget2 = "budget_data_2.csv"
#read in first file
budget1_df = pd.read_csv(budget1)
budget1_df.head()
#read in second file
budget2_df = pd.read_csv(budget2)
budget2_df.head()
#stack csv f... | {"hexsha": "5c7b0f1d5c5d9c827e9d8f2c0427462631102721", "size": 1576, "ext": "py", "lang": "Python", "max_stars_repo_path": "PyBank.py", "max_stars_repo_name": "dhoebbel/PythonHomework", "max_stars_repo_head_hexsha": "ddd852d6915ea449609856bc66c8aeacf3a02272", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,... |
#!/usr/bin/env python
"""Use to generate arm task and run."""
TIMELIMIT = 6 *60
global TIMEOUT
TIMEOUT = False
SPEED = 12
EXPIRED = 'ABCD'
Y_MAX = 1.04
Y_MIN = 9.05
import os
import sys
import copy
import time
import threading
from math import radians, degrees, sin, cos,... | {"hexsha": "8ef30774dd252ab786423e229f4ad4b554e4c40e", "size": 21568, "ext": "py", "lang": "Python", "max_stars_repo_path": "strategy/src/dispo.py", "max_stars_repo_name": "tkuiclab/wrs2018", "max_stars_repo_head_hexsha": "d7556a09d265f17ec461571b73271a4d97df397c", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
__author__ = 'ah14aeb'
import sys
import numpy as np
import config
import log
from helpers.imagedatahelper import ImageDataHelper
import os
import re
class FeatureOptions(object):
def __init__(self, config):
self.output_folder_path = config['output_folder_path']
self.image_folder_pa... | {"hexsha": "0e0de904c37671e10f358da1d6ffb3436e9b5faf", "size": 5741, "ext": "py", "lang": "Python", "max_stars_repo_path": "graph_clustering/code/python/algos/astro/src/object_detection_mask_creation.py", "max_stars_repo_name": "garrethmartin/HSC_UML", "max_stars_repo_head_hexsha": "de30003e2adc34951b21de8be5406a1d7014... |
#!/usr/bin/python
#
# Project Saturn
# _____________________________________________________________________________
#
# _.oo.
# August 2019 _.u[[/;:,. .odMMMMMM'
# ... | {"hexsha": "1713fd96780f83a7a828849d58eb50c7f49282e5", "size": 6947, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets/mnist/mnist_to_tfrecord.py", "max_stars_repo_name": "GOAL-Robots/CAR_flow", "max_stars_repo_head_hexsha": "1113343ffe35c0e12d4dfcbd170e67fb2fb34e75", "max_stars_repo_licenses": ["MIT"], "... |
/*
Copyright 2011 Larry Gritz and the other authors and contributors.
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
noti... | {"hexsha": "c3102a79587de258c460e7cb05a356f656ba1ece", "size": 24603, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/rla.imageio/rlaoutput.cpp", "max_stars_repo_name": "ndubey/oiio", "max_stars_repo_head_hexsha": "fb00e178be048c31f478076977d17434c310472c", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta... |
from __future__ import division, print_function
import sys, random, pdb, math
import numpy as np
sys.dont_write_bytecode = True
"""
Multi-objective optimization
"""
from readdata import *
from counts import *
@setting
def RULER(**d):
def enough(ruleRows, allRows):
return len(ruleRows) >= len(allRows) ** the... | {"hexsha": "f4885efcbc146028ee21103151b16087f5115639", "size": 6915, "ext": "py", "lang": "Python", "max_stars_repo_path": "ruler.py", "max_stars_repo_name": "WeiFoo/WHICH", "max_stars_repo_head_hexsha": "df8dbc50b219aefc54ba6371ef6788095b46a948", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_stars_... |
less_toxic(r1,a1).
less_toxic(hh1,d1).
less_toxic(b1,i1).
less_toxic(r1,f1).
less_toxic(b1,a1).
less_toxic(ll1,w1).
less_toxic(ee1,dd1).
less_toxic(m1,b1).
less_toxic(aa1,f1).
less_toxic(n1,d1).
less_toxic(j1,aa1).
less_toxic(m1,i1).
less_toxic(b1,c1).
| {"hexsha": "1c1d4899f7fdb52b1c3d06bb41654c0265bc406d", "size": 253, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "foldsCreator/files/datasets/alzheimer_toxic_noiseless/incremental3/test3.f", "max_stars_repo_name": "manoelfranca/cilppp", "max_stars_repo_head_hexsha": "732189159a64e56cd32a5ad8a9010d928f4d41c6", ... |
from collections.abc import Iterable
from enum import Enum
import hashlib
import io
import json
import os
import pickle
import shutil
import sys
# Imports the Google Cloud client library
from google.cloud import vision
from google.cloud.vision import types
from google.oauth2 import service_account
# External library ... | {"hexsha": "537b82e0ce4931921855af50869541a17d17f39f", "size": 16836, "ext": "py", "lang": "Python", "max_stars_repo_path": "process_scans.py", "max_stars_repo_name": "kollivier/curriculum-scanner", "max_stars_repo_head_hexsha": "e5c904317c4b133e3251813ba619c430ef25070b", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 6 15:55:35 2019
@author: qwang
"""
#%% Setting
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
import random
import os
import re
import collections
PATH = 'U:/Da... | {"hexsha": "3ff3f02469809af89007eadb8ef5f67d765a895a", "size": 2701, "ext": "py", "lang": "Python", "max_stars_repo_path": "rob_trial/utils.py", "max_stars_repo_name": "qianyingw/rob", "max_stars_repo_head_hexsha": "4881c26a095e51036989ffd1bc76a97adf44e7c6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ... |
/-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.rbtree.find
import Mathlib.Lean3Lib.data.rbtree.insert
import Mathl... | {"author": "AurelienSaue", "repo": "Mathlib4_auto", "sha": "590df64109b08190abe22358fabc3eae000943f2", "save_path": "github-repos/lean/AurelienSaue-Mathlib4_auto", "path": "github-repos/lean/AurelienSaue-Mathlib4_auto/Mathlib4_auto-590df64109b08190abe22358fabc3eae000943f2/Mathlib/Lean3Lib/data/rbtree/main.lean"} |
import random
import string
import time
from datetime import datetime as dt
import os
import numpy as np
from PIL import Image, ImageFont, ImageDraw
from .deid_mammogram import *
from kskit.dicom2png import dicom2narray
def search_false_positives(indir, list_dicom, list_chosen, outdir_intermediate, repetition, nb_ima... | {"hexsha": "8cececacc42732b77c05947024d29076065e1fd7", "size": 17724, "ext": "py", "lang": "Python", "max_stars_repo_path": "kskit/test_deid_mammogram.py", "max_stars_repo_name": "Mickey-Miky-Low/kskit", "max_stars_repo_head_hexsha": "86846022a382c946b0187c5dbfda3bc19e61d2b8", "max_stars_repo_licenses": ["BSD-2-Clause"... |
'''
Multi-GPU training.
Near linear scale acceleration for multi-gpus on a single machine.
Will use H5 dataset in default. If using normal, will shift to the normal dataset.
'''
import argparse
import math
from datetime import datetime
import h5py
import numpy as np
import tensorflow as tf
import socket
im... | {"hexsha": "857709eccee60a76d332ab0032e27c8893df1314", "size": 15819, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_xyz.py", "max_stars_repo_name": "jackd/SpiderCNN", "max_stars_repo_head_hexsha": "be8a1743ce8b24e7fbe98268aceaa65d217d5744", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma... |
function varargout = imlook3d(varargin)
% IMLOOK3D M-file for imlook3d.fig
% IMLOOK3D, by itself, creates a new IMLOOK3D or raises the existing
% singleton*.
%
% H = IMLOOK3D returns the handle to a new IMLOOK3D or the handle to
% the existing singleton*.
%
% IMLOOK3D('CALLBACK',hObject,eventDa... | {"author": "Sable", "repo": "mcbench-benchmarks", "sha": "ba13b2f0296ef49491b95e3f984c7c41fccdb6d8", "save_path": "github-repos/MATLAB/Sable-mcbench-benchmarks", "path": "github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/4190-imlook3d/imlook3d.m"} |
# Copyright (C) 2018 - This notice is to be included in all relevant source files.
# "Brandon Goldbeck" <bpg@pdx.edu>
# “Anthony Namba” <anamba@pdx.edu>
# “Brandon Le” <lebran@pdx.edu>
# “Ann Peake” <peakean@pdx.edu>
# “Sohan Tamang” <sohan@pdx.edu>
# “An Huynh” <an35@pdx.edu>
# “Theron Anderson” <atheron@pdx.edu>
# Th... | {"hexsha": "c7819b55b72501c2e03ab3edb1e5e2e1afaabbe3", "size": 1602, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/ci_tests/integration/test_ldraw.py", "max_stars_repo_name": "bgoldbeck/ldraw", "max_stars_repo_head_hexsha": "61a3fde105d0c0841a571037537ec3347bae8808", "max_stars_repo_licenses": ["MIT"], "... |
[STATEMENT]
lemma abst_dbtm_fresh_ignore [simp]: "atom name \<sharp> u \<Longrightarrow> abst_dbtm name j u = u"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. atom name \<sharp> u \<Longrightarrow> abst_dbtm name j u = u
[PROOF STEP]
by (induct u rule: dbtm.induct) auto | {"llama_tokens": 107, "file": "Incompleteness_Coding", "length": 1} |
import itertools
import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
from nose.tools import assert_equal, assert_true
from pystruct.models import GraphCRF, LatentNodeCRF, EdgeFeatureLatentNodeCRF
from pystruct.learners import (NSlackSSVM, LatentSSVM,
... | {"hexsha": "730ef4d1774db93b1471418d4bf9f2c7870cbcfa", "size": 7001, "ext": "py", "lang": "Python", "max_stars_repo_path": "pystruct/tests/test_learners/test_latent_node_crf_learning.py", "max_stars_repo_name": "stefanoteso/pystruct", "max_stars_repo_head_hexsha": "3bafeab13eea82fa6f3077686b951bf76d810a8d", "max_stars_... |
import control as cnt
import numpy as np
import scipy as sp
def dlqr(sys, Q, R):
"""Solves for the optimal discrete-time LQR controller.
x(n+1) = A * x(n) + B * u(n)
J = sum(0, inf, x.T * Q * x + u.T * R * u)
Keyword arguments:
A -- numpy.array(states x states), The A matrix.
B -- numpy.arra... | {"hexsha": "18e41022aa05c5ee29c6ac5bd6eb8258b492b1fd", "size": 1066, "ext": "py", "lang": "Python", "max_stars_repo_path": "frccontrol/dlqr.py", "max_stars_repo_name": "Dwopplee/frccontrol", "max_stars_repo_head_hexsha": "8dac9373515697a6d7d92bd0d267fb4c156677cb", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars... |
import numpy as np
test = 'cdir := "/home/scott/Documents/research/software/hqca/hqca/maple/":\n'
test+= 'with(LinearAlgebra): with(QuantumChemistry):\n'
test+= 'loaddata := readdata(cat(cdir, "h4_qc_spatial.rdm"), 6):\n'
test+= 'Flatten := proc(x) local n, a, i, j, k, l; `local`(a, n, i, j, k, l); `description`("c... | {"hexsha": "4cda40cf26b928c49714d98beb0088d3c89a39b4", "size": 1060, "ext": "py", "lang": "Python", "max_stars_repo_path": "hqca/maple/old/process.py", "max_stars_repo_name": "damazz/HQCA", "max_stars_repo_head_hexsha": "b013ba68f86e42350913c4abc2e1c91695a429b7", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_co... |
In this notebook, you will implement the forward longitudinal vehicle model. The model accepts throttle inputs and steps through the longitudinal dynamic equations. Once implemented, you will be given a set of inputs that drives over a small road slope to test your model.
The input to the model is a throttle percentag... | {"hexsha": "292193d1ce34fa5dc6f69e22c2d2281e63064a6a", "size": 88754, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "Week_4/Longitudinal_Vehicle_Model.ipynb", "max_stars_repo_name": "ArthurChenCoding/Dynamic-model-control-for-Autonomous-Vhical", "max_stars_repo_head_hexsha": "ac9c77897e4eef7d6aec61... |
from .datasets import *
from astropy.time import Time
from astropy.io.fits import Header
import datetime
import os
from os import path
import shutil
from . import Telescope
from .simulations import fits_image, ObservationSimulation
def simulate_observation(time, dflux, destination, dx=3):
n = len(time)
# Cre... | {"hexsha": "18522237bb6331cdb8b4952c6bf630211fe3ea95", "size": 2370, "ext": "py", "lang": "Python", "max_stars_repo_path": "prose/tutorials.py", "max_stars_repo_name": "lgrcia/prose", "max_stars_repo_head_hexsha": "bf5482f775eb8cfee261620901cebafb6edb650a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 22, "ma... |
import matplotlib.pyplot as plt
import numpy as np
import cv2
from math import cos, sin, pi, floor, ceil, sqrt
from os import path
import os
cwd = os.getcwd()
dirname = path.join(cwd, path.dirname(__file__))
class DIP:
# Y 色域做量化
Q1 = np.array(((16, 11, 10, 16, 24, 40, 51, 61),
(12, 12, 14... | {"hexsha": "125075514feb1a6ecebdb1bafc97c79584c43299", "size": 3772, "ext": "py", "lang": "Python", "max_stars_repo_path": "Question_31_40/custom_py/40.py", "max_stars_repo_name": "lastIndexOf/ImageProcessing100Wen", "max_stars_repo_head_hexsha": "1e4eba4bc4c52cbf86e7cfe7e15f215323f5b069", "max_stars_repo_licenses": ["... |
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | {"hexsha": "f8f820d4701f39897368fdf5638630502a47a293", "size": 2358, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/terra/test_python_to_cpp.py", "max_stars_repo_name": "mrossinek/qiskit-aer", "max_stars_repo_head_hexsha": "796a12fc6750d3577a13ab2a59a191f7f325e5f1", "max_stars_repo_licenses": ["Apache-2.0"... |
/-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... | {"author": "JLimperg", "repo": "aesop3", "sha": "a4a116f650cc7403428e72bd2e2c4cda300fe03f", "save_path": "github-repos/lean/JLimperg-aesop3", "path": "github-repos/lean/JLimperg-aesop3/aesop3-a4a116f650cc7403428e72bd2e2c4cda300fe03f/src/data/set/basic.lean"} |
\documentclass[envcountsame]{cls/cccg15}
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\usepackage[mathscr]{euscript}
\usepackage{caption,subcaption}
\usepackage{booktabs,multirow}
\usepackage{algorithm}
\usepackage[noend]{algorithmic}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{cleveref}
%--------... | {"hexsha": "59996342ea6705b9b085397dd1ac5fb799c6de08", "size": 65039, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "outlier.tex", "max_stars_repo_name": "behnamhatami/CCCG2015", "max_stars_repo_head_hexsha": "892ae9545105994da14c7bc689418f572df0ca94", "max_stars_repo_licenses": ["CC0-1.0"], "max_stars_count": nu... |
"""Test the vasprun.xml io interface"""
# pylint: disable=unused-import,redefined-outer-name,unused-argument,unused-wildcard-import,wildcard-import
import pytest
import numpy as np
from aiida_vasp.utils.fixtures import *
from aiida_vasp.utils.fixtures.testdata import data_path
from aiida_vasp.utils.aiida_utils import... | {"hexsha": "07606d53338093f524f2f22d934d2d68382893f6", "size": 19049, "ext": "py", "lang": "Python", "max_stars_repo_path": "aiida_vasp/io/tests/test_vasprun_io.py", "max_stars_repo_name": "chrisjsewell/aiida-vasp", "max_stars_repo_head_hexsha": "11b6abf728efdba475c2fa24ede41c4ffe8fac64", "max_stars_repo_licenses": ["M... |
#include <votca/tools/propertyiomanipulator.h>
#include <votca/ctp/job.h>
#include <boost/format.hpp>
#include <boost/algorithm/string.hpp>
using boost::format;
namespace votca { namespace ctp {
Job::Job(Property *prop)
: _has_host(false), _has_time(false), _has_error(false),
_has_output(fa... | {"hexsha": "8b4d48d68bafa388076bd2ac9d01a3a5e0e3a85e", "size": 5772, "ext": "cc", "lang": "C++", "max_stars_repo_path": "src/libctp/job.cc", "max_stars_repo_name": "mbarbry/ctp", "max_stars_repo_head_hexsha": "8461ba9d012c7e171a05e0b114b59d0523fc9a56", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": null,... |
import numpy as np
import cv2 as cv
from tkinter import *
from PIL import ImageTk,Image
from tkinter import filedialog
from matplotlib import pyplot as plt
from tkinter.font import Font
root = Tk()
root.title("Tarea de Programación 01") #Deteccion y emparejamiento de rasgos
#root.geometry("400x400")
def G... | {"hexsha": "7b5c02d8a471f65c97251f6cf409338dc2214dcf", "size": 34382, "ext": "py", "lang": "Python", "max_stars_repo_path": "TP1_Tkinter.py", "max_stars_repo_name": "Podlecki/Deteccion-y-emparejamiento-de-rasgos", "max_stars_repo_head_hexsha": "26b999348757ac4e201ef4d5a4ad0298776c0e95", "max_stars_repo_licenses": ["Apa... |
function test_bug1599(datainfo, version)
% MEM 2gb
% WALLTIME 00:10:00
% DEPENDENCY ft_sourceanalysis ft_inverse_lcmv
% fixedori is set correctly in ft_inverse_lcmv, the only problem is
% that ft_sourceanalysis seems to not bother about this when using a
% predefined filter
if nargin<1
datainfo = ref_datasets;
end... | {"author": "fieldtrip", "repo": "fieldtrip", "sha": "c2039be598a02d86b39aae76bfa7aaa720f9801c", "save_path": "github-repos/MATLAB/fieldtrip-fieldtrip", "path": "github-repos/MATLAB/fieldtrip-fieldtrip/fieldtrip-c2039be598a02d86b39aae76bfa7aaa720f9801c/test/test_bug1599.m"} |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
@copyright 2016 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
... | {"hexsha": "2eb3f8ff9773123ae73d1d2e5d17fb66362b48d9", "size": 1320, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/boost/simd/function/rec.hpp", "max_stars_repo_name": "yaeldarmon/boost.simd", "max_stars_repo_head_hexsha": "561316cc54bdc6353ca78f3b6d7e9120acd11144", "max_stars_repo_licenses": ["BSL-1.0"]... |
\chapter{Introduction}
In this short chapter, I would like to motivate why it is that you have to learn logic when you study computer
science. After that, I will give a short overview of the lecture.
\section{Motivation}
Modern software systems are among the most complex systems developed by mankind. You can get a
s... | {"hexsha": "6d507d195d23d3d77c67cfebe2e1950abc177bd4", "size": 8075, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Lecture-Notes-Python/introduction.tex", "max_stars_repo_name": "AbdalrohmanGitHub/Logik", "max_stars_repo_head_hexsha": "62270c224061f38b637cb6920a0fbe5a56495bb9", "max_stars_repo_licenses": ["MIT"]... |
#!/usr/bin/env python
# coding: utf-8
import os
import pandas as pd
import geopandas as gpd
#import numpy as np
from geopy.geocoders import Nominatim # get location coordinates
import folium
from folium import plugins
from branca.colormap import LinearColormap
wd = '/Users/Xavi/Dropbox/xavi-umh/RECERCA/treballs/... | {"hexsha": "62a09dc64023db41510f535a2ca42c4345580995", "size": 8023, "ext": "py", "lang": "Python", "max_stars_repo_path": "Notebooks/health_departments_map.py", "max_stars_repo_name": "BIMCV-CSUSP/BIMCV-COVID-19", "max_stars_repo_head_hexsha": "794e1495ef2ad6a9bdfa7d71fbf3d093cc080756", "max_stars_repo_licenses": ["MI... |
import scipy
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
from scattertext.Scalers import stretch_0_to_1
from scattertext.categoryprojector.CategoryProjection import CategoryProjection
class CategoryProjectionEvaluator(object):
def evaluate(self, category_projection):
raise ... | {"hexsha": "73a844d660aeb0fd1385c0f7dcbe9206b1e0b744", "size": 2224, "ext": "py", "lang": "Python", "max_stars_repo_path": "scattertext/categoryprojector/CategoryProjectorEvaluator.py", "max_stars_repo_name": "trajanov/scattertext", "max_stars_repo_head_hexsha": "f77c25a42cd8bb204dceded9201b248c1e6e3780", "max_stars_re... |
# File: embedder.py
# Creation: Saturday September 19th 2020
# Author: Arthur Dujardin
# Contact: arthur.dujardin@ensg.eu
# arthurd@ifi.uio.no
# --------
# Copyright (c) 2020 Arthur Dujardin
# Basic imports
import sys
from tqdm import tqdm
import numpy as np
import torch
# img2poem package
from .trainer imp... | {"hexsha": "44ffb8b6e592116d1099adc4e5dab0293e701e98", "size": 2586, "ext": "py", "lang": "Python", "max_stars_repo_path": "img2poem/trainers/embedder.py", "max_stars_repo_name": "arthurdjn/img2poem-pytorch", "max_stars_repo_head_hexsha": "535366d12369f5b87e62014314bcc97f563a98e7", "max_stars_repo_licenses": ["MIT"], "... |
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as mpatches
import os
filename01pos = "data/simulation2017-06-14-20.34.34/fisher_leaky_position"
filename01 = "data/simulation2017-06-14-20.34.34/fisher_leaky_momentum"
filename01_times = "data/simulation2017-06-14-20.34.34/times"
fisher01po... | {"hexsha": "8acdb0ec8bfa511910cc35726740f68a2b05cd07", "size": 2376, "ext": "py", "lang": "Python", "max_stars_repo_path": "figures/Plotter_fisher_leaky01_position.py", "max_stars_repo_name": "sqvarfort/Coherent-states-Fisher-information", "max_stars_repo_head_hexsha": "2914b11ac56c686babf15730ed6546d6f3d3caab", "max_s... |
"""
Fermi.Geometry
Module handling molecule and atoms data
# exports:
Atom Object storing information about an atom
Molecule Object storing information about a molecule (group of atoms)
"""
module Geometry
export Molecule
export Atom
using Fermi
using Fermi.Output
using Fermi.PhysicalConstants: a... | {"hexsha": "0e577aa2af19a22830a2efd3455896ee8b3ef6bd", "size": 5705, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Core/Geometry.jl", "max_stars_repo_name": "jturney/Fermi.jl", "max_stars_repo_head_hexsha": "46a22ee67b0de7496c6767cb73c71d21dce397cf", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu... |
"""
Pooling Layers for processing variable-length Text with appropriate Masking in Keras.
General support for representing a Document as N-dimensional text.
Each Word or Token is represented as an Integer index into a Vocabulary, with `0` used for padding.
The last dimension represents a Word-sequence.
So a Document r... | {"hexsha": "dde7b4bad61596407474f6117cbf28dedb2fa780", "size": 15476, "ext": "py", "lang": "Python", "max_stars_repo_path": "kerastext/pooling.py", "max_stars_repo_name": "sunil-at-gh/KerasText", "max_stars_repo_head_hexsha": "cb678ac3a6c58071bc4a3e20895f6497bef416d6", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
# Solution to the Initial Value Problem:
We solve
\begin{equation}
\epsilon\frac{\partial \theta}{\partial t} + \cos{(y)}\frac{\partial\theta}{\partial x} = \frac{1}{Pe}\frac{\partial^2\theta}{\partial x^2} + \epsilon\frac{\partial^2\theta}{\partial y^2} ,
\end{equation}
in the domain $0<y<2\pi$, $-2 \pi < x < 2 \pi$... | {"hexsha": "81b72491b46b1159ded3b4001f253183baae124f", "size": 361710, "ext": "ipynb", "lang": "Jupyter Notebook", "max_stars_repo_path": "Advection_Diffusion/.ipynb_checkpoints/test-checkpoint.ipynb", "max_stars_repo_name": "Mikejmnez/Adv_Diff_Supplemental_Materials", "max_stars_repo_head_hexsha": "ae456d9470bb6739fee... |
[STATEMENT]
lemma stereographic_sphere_circle_set:
shows "stereographic ` sphere_circle_set H = circline_set (stereographic_circline H)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. stereographic ` sphere_circle_set H = circline_set (stereographic_circline H)
[PROOF STEP]
using stereographic_sphere_circle_set'[o... | {"llama_tokens": 542, "file": "Complex_Geometry_Riemann_Sphere", "length": 4} |
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.3
# kernelspec:
# display_name: Python 3
# name: python3
# ---
# + [markdown] id="view-in-github" colab_type="text"
... | {"hexsha": "2334182d25b825bf1c7ff85c1003965fae73648c", "size": 4103, "ext": "py", "lang": "Python", "max_stars_repo_path": "notebooks-text-format/autodiff_tf.py", "max_stars_repo_name": "arpitvaghela/probml-notebooks", "max_stars_repo_head_hexsha": "32ecb309dd474b989fd1c6ce4ad6dab7a25bbead", "max_stars_repo_licenses": ... |
# Copyright 2016-2021 The Van Valen Lab at the California Institute of
# Technology (Caltech), with support from the Paul Allen Family Foundation,
# Google, & National Institutes of Health (NIH) under Grant U24CA224309-01.
# All rights reserved.
#
# Licensed under a modified Apache License, Version 2.0 (the "License");... | {"hexsha": "0cc4ee8fbee8118dfcc9c41d4a5db88daffbf2aa", "size": 5687, "ext": "py", "lang": "Python", "max_stars_repo_path": "deepcell/layers/normalization_test.py", "max_stars_repo_name": "jizhouh/deepcell-tf", "max_stars_repo_head_hexsha": "491ece59f5024d73429477ebdcb437a6e67d766b", "max_stars_repo_licenses": ["Apache-... |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
from sklearn.linear_model... | {"hexsha": "f023c3831dc8bcca5b262ddbdb1b65992cad00b9", "size": 3635, "ext": "py", "lang": "Python", "max_stars_repo_path": "Machine learning/ML/unsupervised_ML/AI2_LDA.py", "max_stars_repo_name": "warpalatino/public", "max_stars_repo_head_hexsha": "f04ce183799bcdd2fb8dc376d41d286314c19460", "max_stars_repo_licenses": [... |
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE sharedlocker_test
#include <boost/test/unit_test.hpp>
#include "ouroboros/sharedlocker.h"
BOOST_AUTO_TEST_CASE(simple_test)
{
ouroboros::mutex_lock locker("locktest");
BOOST_REQUIRE(locker.lock());
BOOST_REQUIRE(!locker.lock());
BOOST_REQUIRE(!lock... | {"hexsha": "449539f5d2eb291f33ecfa0f526ff556d4038e01", "size": 589, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/sharedlocker_test.cpp", "max_stars_repo_name": "belyaev-ms/ouroboros", "max_stars_repo_head_hexsha": "65b14330523ae648032a8ce1145b74b4a8e71cd8", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
#include "predict.h"
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <iomanip>
#include <tbb/task_scheduler_init.h>
#include "import.h"
#include "random_forest_image.h"
#include "random_tree_image.h"
#include "utils.h"
#include "version.h"
namespace po = boos... | {"hexsha": "9a630145dcf64a1ef30eada062c9b56dad71ce6e", "size": 5229, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/curfil/predict_main.cpp", "max_stars_repo_name": "ferasha/curfil", "max_stars_repo_head_hexsha": "f8c257dcb3a74aaa5c25eaa91c29a6dcbad04211", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
### Code taken from GLM: Linear Regression ====
### (available online: https://docs.pymc.io/notebooks/GLM-linear.html)
import numpy as np
import pymc3 as pm
size = 200
true_intercept = 1
true_slope = 2
x = np.linspace(0, 1, size)
# y = a + b*x
true_regression_line = true_intercept + true_slope * x
# add noise
y = ... | {"hexsha": "05508b12d2150a457de87c554a2240ad4b0798d4", "size": 1133, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/pymc3__pred_single_obs.py", "max_stars_repo_name": "fdetsch/python-playground", "max_stars_repo_head_hexsha": "7a5b3fde5a5173942666e8282e3df6d629a71d55", "max_stars_repo_licenses": ["MIT"], "m... |
"""
Holds a specification for composing a simple species.
"""
type SimpleSpeciesDefinition <: SpeciesDefinition
"""
The fitness scheme used by members of this species.
Defaults to (maximised) scalar fitness if unspecified.
"""
fitness::FitnessScheme
"""
The representation used by members of this species.... | {"hexsha": "300fd7c30c5e6690120d48c46343b6867d7ebdc5", "size": 1452, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/species/simple.jl", "max_stars_repo_name": "UnofficialJuliaMirror/Wallace.jl-cae8e8ee-2945-58eb-bb0d-8aa7cb85bad1", "max_stars_repo_head_hexsha": "80c529e886bd8c37bda3bcfa29257367b7689ee5", "ma... |
import torch
from torch import nn
import torch.nn.functional as F
import math
import numpy as np
import torch_geometric as G
import copy
from torch_scatter import scatter_sum
import poptorch
class DataWrapper(torch.utils.data.IterableDataset):
def __init__(self, data, partition):
super(DataWrapper).__init_... | {"hexsha": "90e819a327bac53efc31be6b7550fd769f1112bb", "size": 17650, "ext": "py", "lang": "Python", "max_stars_repo_path": "tgn_modules.py", "max_stars_repo_name": "graphcore/tgn-ipu", "max_stars_repo_head_hexsha": "2885ecb6a7f024230fe105d2885ef2c3b4be709e", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "m... |
using FFTResampling, Documenter
# set seed fixed for documentation
DocMeta.setdocmeta!(FFTResampling, :DocTestSetup, :(using FFTResampling); recursive=true)
makedocs(modules = [FFTResampling],
sitename = "FFTResampling.jl",
pages = Any[
"FFTResampling.jl" => "index.md",
]
... | {"hexsha": "ed60c6c9d7be625aff0b410447be7657d536856b", "size": 410, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "docs/make.jl", "max_stars_repo_name": "roflmaostc/FFTInterpolations.jl", "max_stars_repo_head_hexsha": "aa71cf741f0123ca4ec51460096eb895db39b13e", "max_stars_repo_licenses": ["MIT"], "max_stars_coun... |
# Imports
import numpy as np
from tensorflow.keras.models import load_model
from deep_model.BiLSTM.preprocess import preprocess_testdata
from deep_model.BiLSTM.parameters import *
"""
# Uncomment for generating plots. Requires some libraries (see below)
import seaborn as sns
import pandas as pd
import matplotlib.pyplo... | {"hexsha": "4fbde24ae81e42662e0666fcbc997d6bc5031909", "size": 2417, "ext": "py", "lang": "Python", "max_stars_repo_path": "Deep model/BiLSTM/model_test.py", "max_stars_repo_name": "HarshitSamani/Natural-Language-Inference", "max_stars_repo_head_hexsha": "01b713396b6633f8bb0406436c5041883726a969", "max_stars_repo_licen... |
import tensorflow as tf
from tensorflow import keras
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from tensorflow.keras.layers import *
from sklearn.model_selection import KFold
from tensorflow.keras import Model
from sklearn.preprocessing import StandardScaler
from tensorflow.keras import cal... | {"hexsha": "05d897deed95ca693551c60a2393c769610e83f8", "size": 4658, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/modeling/models.py", "max_stars_repo_name": "ilrd/Binary_Classification", "max_stars_repo_head_hexsha": "7f8110c67df6f30fc211ecdb864726620b9360a3", "max_stars_repo_licenses": ["Apache-2.0"], "... |
import pickle
import numpy as np
from scipy import stats
import re
import datetime
from decimal import Decimal
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import csv
def sameSeason( pMonth, cMonth ):
if pMonth == 12 or pMonth == 1 or pMonth == 2:
if cMonth == 12 or cMo... | {"hexsha": "448e4d805c2d449722a68b868fb21cf90a18c814", "size": 6162, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/manipTemp2.py", "max_stars_repo_name": "hannahchuh/Modelling-Temperature-Related-Mortality-in-NYC", "max_stars_repo_head_hexsha": "b7829f9cd24b6f4b1825cbded7cc8508a7857c7a", "max_stars_repo_l... |
import neptune
import optuna
import joblib
import matplotlib.pyplot as plt
import pandas as pd
from tqdm import tqdm
import neptunecontrib.monitoring.optuna as opt_utils
from neptunecontrib.api import log_table
from optuna.samplers import TPESampler
from pipeline.modeling.data_utils import TransformDF
from pipeline.m... | {"hexsha": "7fdb2292dffb04ea124a663ebbe8e3b21c1b32a4", "size": 8955, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/turn-taking/analyze.py", "max_stars_repo_name": "interaction-lab/modeling-pipeline", "max_stars_repo_head_hexsha": "f0037fbcffb204225b9be2d7b4214965b314d917", "max_stars_repo_licenses": [... |
[STATEMENT]
lemma smalleraux3:
assumes "x \<in> set l" and " y \<in> set l" and "x \<noteq> y" and "x = bothNet a" and "y = bothNet b"
and "smaller a b l" and "singleCombinators [a]" and "singleCombinators [b]"
shows "\<not> smaller b a l"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<not> smaller b a ... | {"llama_tokens": 7498, "file": "UPF_Firewall_FWNormalisation_NormalisationGenericProofs", "length": 59} |
// Copyright (c) 2001-2008 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boist.org/LICENSE_1_0.txt)
#if !defined(BOOST_SPIRIT_ITERATOR_OSTREAM_MAY_27_2007_0133PM)
#define BOOST_SPIRIT_ITERATOR_OSTREAM_MAY_27_2007_013... | {"hexsha": "22353d526cf624d497042f8d4d83e2f5df4b24c8", "size": 1341, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src-2007/public/python/boost/spirit/home/karma/stream/detail/iterator_ostream.hpp", "max_stars_repo_name": "KyleGospo/City-17-Episode-One-Source", "max_stars_repo_head_hexsha": "2bc0bb56a2e0a63d9637... |
%% projection onto T_X(M_r)
% X=U*diag(S)*V'
% cf. [Van12]
function P=proj_fr(Z,U,V,sp)
if nargin<4, sp='t'; end
switch sp
case 't'
UtZ=U'*Z;
P=U*UtZ+(Z*V)*V'-(U*(UtZ*V))*V';
case 'n'
UtZ=U'*Z;
P=Z-(U*UtZ+(Z*V)*V'-(U*(UtZ*V))*V');
end
%% old version
% Pu=U*U';
... | {"author": "andrewssobral", "repo": "lrslibrary", "sha": "06d457349cb5f1fc56a583cd61af9f1d5150e3a1", "save_path": "github-repos/MATLAB/andrewssobral-lrslibrary", "path": "github-repos/MATLAB/andrewssobral-lrslibrary/lrslibrary-06d457349cb5f1fc56a583cd61af9f1d5150e3a1/algorithms/rpca/R2PCP/proj_fr.m"} |
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import sklearn as sk
import seaborn as sns
from scipy import optimize
# def feature(mat,i,j):
# feature1 = mat[i][j]
# matPadded = np.pad(mat,1,mode = 'constant')
# feature2 = np.sum(matPadded[i:i+3,j:j+3]) - matPadded[i+1,j+1]
# ... | {"hexsha": "122295bc35f55eb4447a6c6aa5dc5fc39840488d", "size": 3272, "ext": "py", "lang": "Python", "max_stars_repo_path": "ProbabilityFunction/GradientDescentV2.py", "max_stars_repo_name": "ChanaRoss/Thesis", "max_stars_repo_head_hexsha": "39ab83d52055d401a3bb71da25b3458ad9196ecd", "max_stars_repo_licenses": ["Apache-... |
import pandas as pd
import re
import numpy as np
import matplotlib.pyplot as plt
from sklearn import cross_validation
from sklearn.ensemble import RandomForestClassifier
from sklearn.feature_selection import SelectKBest, f_classif
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.linear_model import ... | {"hexsha": "a40110eedc6408c3ac44128db9a475a1f820aafc", "size": 4064, "ext": "py", "lang": "Python", "max_stars_repo_path": "Titanic/RF.py", "max_stars_repo_name": "wjwzju/kaggle", "max_stars_repo_head_hexsha": "8660c5411fd819a3d040314f8ea2c0fcdffb0378", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_... |
"""Transition and sequence analysis of neighborhood change."""
import geopandas as gpd
import numpy as np
import pandas as pd
from giddy.markov import Markov, Spatial_Markov
from giddy.sequence import Sequence
from libpysal.weights import Voronoi, lag_categorical
from libpysal.weights.contiguity import Queen, Rook
fro... | {"hexsha": "a387fd465f8e628ce06e983f576812d559b4f974", "size": 14010, "ext": "py", "lang": "Python", "max_stars_repo_path": "geosnap/analyze/dynamics.py", "max_stars_repo_name": "WawNun/geosnap", "max_stars_repo_head_hexsha": "9838498b89d42c94fef73ee2983dd385dab17345", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_... |
#' @title whichEventsVincenty
#' @description Uses Vincenty Formula to Determine Distances between points
#' @param \code{radius} km
#' @family abysmally documented
#' @author unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @export
whichEventsVincenty <- function(lonlat,events,radius) {
cat('Uses Vincenty Formula to De... | {"hexsha": "832b0602ab5a77ea339c65aa285f77262569648a", "size": 727, "ext": "r", "lang": "R", "max_stars_repo_path": "R/whichEventsVincenty.r", "max_stars_repo_name": "AtlanticR/bio.utilities", "max_stars_repo_head_hexsha": "aaa52cf86afa4ee9e6f46c4516a48d27cc0bfed9", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
[STATEMENT]
lemma inv_loop6_loop_Bk_Bk_drop[elim]: "\<lbrakk>0 < x; inv_loop6_loop x (b, Bk # list); b \<noteq> []; hd b = Bk\<rbrakk>
\<Longrightarrow> inv_loop6_loop x (tl b, Bk # Bk # list)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>0 < x; inv_loop6_loop x (b, Bk # list); b \<noteq> []... | {"llama_tokens": 1248, "file": "Universal_Turing_Machine_WeakCopyTM", "length": 6} |
import numpy as np
import copy
from astropy.nddata.nduncertainty import StdDevUncertainty
def combine_spectra(spec_list):
spec_final = spec_list[0]
for i in range(1, len(spec_list)):
spec_final = spec_final.add(spec_list[i], propagate_uncertainties=True)
return spec_final
def resample_... | {"hexsha": "4bddb8f124855400114a43817b9fead829b89e76", "size": 1308, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/muler/utilities.py", "max_stars_repo_name": "synapticarbors/muler", "max_stars_repo_head_hexsha": "4f4aa3d0e57b0aec4fec306ce4f6a6eaebb56152", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
import numpy as np
from scipy.misc import imread
import torch
import random
def load_depth(path,format='png'):
if format=='npy':
tgt_depth = np.expand_dims(np.load(path), axis=0)
elif format=='png':
tgt_depth =np.expand_dims( imread(path), axis=0)
return torch.from_numpy(tgt_depth).float()... | {"hexsha": "277cfc2eaf7d209975206be666ec892e87746c43", "size": 4457, "ext": "py", "lang": "Python", "max_stars_repo_path": "datasets/utils.py", "max_stars_repo_name": "xdr940/cc", "max_stars_repo_head_hexsha": "a98fe9b6c33c332a4c399f968032a90989c55672", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_... |
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Require Import NArith ZArith Psatz.
Require Import TLC.LibReflect.
(* This is a simplified version of mathcomp/real-closed/bigenough.v. *)
(****************************************************************************)
(* ... | {"author": "fakusb", "repo": "coq-bigO", "sha": "5607fd6cf3d9a30eac05c78f8efa500573b29630", "save_path": "github-repos/coq/fakusb-coq-bigO", "path": "github-repos/coq/fakusb-coq-bigO/coq-bigO-5607fd6cf3d9a30eac05c78f8efa500573b29630/src/BigEnough.v"} |
"""
Generates and manages the large experience replay buffer.
The experience replay buffer holds all the data that is dumped into it from the
many agents who are running episodes of their own. The learner then trains off
this heap of data continually and in its own thread.
@author: Kirk Hovell (khovell@gmail.com)
"... | {"hexsha": "1c1f8112bfb79f702adaeeef8d0278b14ac69d9b", "size": 1745, "ext": "py", "lang": "Python", "max_stars_repo_path": "replay_buffer.py", "max_stars_repo_name": "Kirkados/Field_Robotics_2021", "max_stars_repo_head_hexsha": "26823b75d303386a17c06b643a471a771e342779", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
def render_points(x, y, c='b', segs=None):
fig = plt.figure()
ax = plt.gca()
ax.scatter(x, y, c=c, s=25)
if segs is not None:
for a, b in segs:
ax.plot([x[a], x[b]], [y[a], y[b]], c='grey', a... | {"hexsha": "07c96de47bd6e447fc9f166bc09861451f6eaf47", "size": 3030, "ext": "py", "lang": "Python", "max_stars_repo_path": "vipe_dataset/util.py", "max_stars_repo_name": "jhong93/vpd", "max_stars_repo_head_hexsha": "1ed3e8631c46e078ecb9a7756dba1f1c14aead5b", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count... |
# Copyright (c) 2017 Salas Lin (leVirve)
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
import os
import time
from collections import OrderedDict
from datetime import datetime
from functools import wraps
import scipy.misc
import torch
from torch.autograd import Variable
cu... | {"hexsha": "e4ee9320d7b95b697cf8b44165bbc74450365fad", "size": 2678, "ext": "py", "lang": "Python", "max_stars_repo_path": "onegan/utils.py", "max_stars_repo_name": "shuuchen/lsun-room-dsc", "max_stars_repo_head_hexsha": "e7841fae2fb1c6695ed4e82f622cebfafe6c878d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
import os
import numpy
import pytest
from chainer import serializers, Variable, cuda
from chainer_chemistry.links.scaler.min_max_scaler import MinMaxScaler
@pytest.fixture
def data():
x = numpy.array(
[[0.1, 10., 0.3],
[0.2, 20., 0.1],
[-0.3, 30., 0.],
[0.4, -40., 0.]],
... | {"hexsha": "f8f95bdc746c595b687bba1da953688796738043", "size": 5501, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/links_tests/scaler_tests/test_min_max_scaler.py", "max_stars_repo_name": "naototachibana/chainer-chemistry", "max_stars_repo_head_hexsha": "785f68232d43fe98cb2c79f5b5e22b7d5a971738", "max_st... |
\problemname{Forced Choice}
Puff the Magic Dinosaur is a renowned magician. Due to the pandemic,
he can only perform for his princess using the latest video
conferencing tools. As a result, many of his usual in-person routines
cannot be performed, and he must come up with a new trick.
Puff has decided to perform th... | {"hexsha": "e8e7dccf5ab2b50129d6846c61d36403e365f220", "size": 2411, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "problems/forcedchoice/problem_statement/problem.tex", "max_stars_repo_name": "icpc/na-rocky-mountain-2020-public", "max_stars_repo_head_hexsha": "d77cd0dfd9bd707f34497977251c4cc583647fef", "max_star... |
subroutine t_knapsack
use bl_IO_module
use f2kcli
use boxarray_module
use box_util_module
use knapsack_module
use list_box_module
integer :: np, n
real(kind=dp_t) :: thresh
logical :: verbose
integer, allocatable :: iweights(:), prc(:)
integer :: i
character(len=128) fname
type(boxarray) :: ba... | {"hexsha": "4a9a956cc89c08c3d79bc40927149da0326b7e28", "size": 1161, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "Tests/F_BaseLib/t_knapsack.f90", "max_stars_repo_name": "memmett/BoxLib", "max_stars_repo_head_hexsha": "a235af87d30cbfc721d4d7eb4da9b8daadeded7d", "max_stars_repo_licenses": ["BSD-3-Clause-LBNL... |
//==================================================================================================
/*!
@file
@copyright 2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//=========================... | {"hexsha": "204344f7ed83006d6ec67cddd00a02654437e03d", "size": 1611, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/boost/simd/hyperbolic.hpp", "max_stars_repo_name": "yaeldarmon/boost.simd", "max_stars_repo_head_hexsha": "561316cc54bdc6353ca78f3b6d7e9120acd11144", "max_stars_repo_licenses": ["BSL-1.0"], ... |
#! -*- coding: utf-8 -*-
import sys
import os
from PIL import Image
import cv2
import numpy as np
# メイン
def main():
# 引数1から画像ファイル名取得
args = sys.argv
if (len(args) != 2):
print("Usage: $ python " + args[0] + " sample.jpg")
quit()
file_path = args[1]
print("File path ... | {"hexsha": "889a3faae3c2a81e9eb02e3d8e8c7849bbc95170", "size": 2493, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/labelImg/exif/exif-test/exif-test.py", "max_stars_repo_name": "keides2/android-yolo-v2", "max_stars_repo_head_hexsha": "90cab926ca3078e18213cff652f4a17a6f3d1349", "max_stars_repo_licenses"... |
from copy import deepcopy
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from mushroom_rl.policy import GaussianTorchPolicy
from mushroom_rl.utils.callbacks import PlotDataset
from mushroom_rl.utils.preprocessors import MinMaxPreprocessor
from mushro... | {"hexsha": "659c8b93acf273dbefd3c0d9beb3b8feb2a3f1da", "size": 5063, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/behaviour_cloning.py", "max_stars_repo_name": "robfiras/mushroom_rl_imitation", "max_stars_repo_head_hexsha": "f188ab742d2a5ea62b8fa44a8c7091389fbe41ab", "max_stars_repo_licenses": ["MIT"... |
/-
Copyright (c) 2023 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Challenge sheet
This is a harder group theory question.
It turns out that two of the axioms in our definition ... | {"author": "ImperialCollegeLondon", "repo": "formalising-mathematics-2023", "sha": "982f6d28a900f2e04e93e7cf298db4f5998be0d5", "save_path": "github-repos/lean/ImperialCollegeLondon-formalising-mathematics-2023", "path": "github-repos/lean/ImperialCollegeLondon-formalising-mathematics-2023/formalising-mathematics-2023-9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.