repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
lingua-py
lingua-py-main/lingua/_model.py
# # Copyright © 2022-present Peter M. Stahl [email protected] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
5,137
36.50365
88
py
lingua-py
lingua-py-main/lingua/language.py
# # Copyright © 2022-present Peter M. Stahl [email protected] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
14,230
30.694878
88
py
lingua-py
lingua-py-main/lingua/detector.py
# # Copyright © 2022-present Peter M. Stahl [email protected] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
27,116
35.301205
88
py
lingua-py
lingua-py-main/lingua/__init__.py
# # Copyright © 2022-present Peter M. Stahl [email protected] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
18,069
37.122363
154
py
lingua-py
lingua-py-main/lingua/builder.py
# # Copyright © 2022-present Peter M. Stahl [email protected] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
9,264
40.177778
94
py
taming-transformers
taming-transformers-master/main.py
import argparse, os, sys, datetime, glob, importlib from omegaconf import OmegaConf import numpy as np from PIL import Image import torch import torchvision from torch.utils.data import random_split, DataLoader, Dataset import pytorch_lightning as pl from pytorch_lightning import seed_everything from pytorch_lightning....
21,251
35.266212
138
py
taming-transformers
taming-transformers-master/setup.py
from setuptools import setup, find_packages setup( name='taming-transformers', version='0.0.1', description='Taming Transformers for High-Resolution Image Synthesis', packages=find_packages(), install_requires=[ 'torch', 'numpy', 'tqdm', ], )
292
19.928571
74
py
taming-transformers
taming-transformers-master/scripts/extract_segmentation.py
import sys, os import numpy as np import scipy import torch import torch.nn as nn from scipy import ndimage from tqdm import tqdm, trange from PIL import Image import torch.hub import torchvision import torch.nn.functional as F # download deeplabv2_resnet101_msc-cocostuff164k-100000.pth from # https://github.com/kazut...
3,753
27.656489
119
py
taming-transformers
taming-transformers-master/scripts/sample_conditional.py
import argparse, os, sys, glob, math, time import torch import numpy as np from omegaconf import OmegaConf import streamlit as st from streamlit import caching from PIL import Image from main import instantiate_from_config, DataModuleFromConfig from torch.utils.data import DataLoader from torch.utils.data.dataloader im...
12,535
34.213483
122
py
taming-transformers
taming-transformers-master/scripts/sample_fast.py
import argparse, os, sys, glob import torch import time import numpy as np from omegaconf import OmegaConf from PIL import Image from tqdm import tqdm, trange from einops import repeat from main import instantiate_from_config from taming.modules.transformer.mingpt import sample_with_past rescale = lambda x: (x + 1.)...
9,191
34.218391
115
py
taming-transformers
taming-transformers-master/scripts/make_scene_samples.py
import glob import os import sys from itertools import product from pathlib import Path from typing import Literal, List, Optional, Tuple import numpy as np import torch from omegaconf import OmegaConf from pytorch_lightning import seed_everything from torch import Tensor from torchvision.utils import save_image from ...
8,092
39.668342
120
py
taming-transformers
taming-transformers-master/scripts/extract_depth.py
import os import torch import numpy as np from tqdm import trange from PIL import Image def get_state(gpu): import torch midas = torch.hub.load("intel-isl/MiDaS", "MiDaS") if gpu: midas.cuda() midas.eval() midas_transforms = torch.hub.load("intel-isl/MiDaS", "transforms") transform = ...
3,121
26.628319
91
py
taming-transformers
taming-transformers-master/scripts/extract_submodel.py
import torch import sys if __name__ == "__main__": inpath = sys.argv[1] outpath = sys.argv[2] submodel = "cond_stage_model" if len(sys.argv) > 3: submodel = sys.argv[3] print("Extracting {} from {} to {}.".format(submodel, inpath, outpath)) sd = torch.load(inpath, map_location="cpu") ...
549
29.555556
75
py
taming-transformers
taming-transformers-master/scripts/make_samples.py
import argparse, os, sys, glob, math, time import torch import numpy as np from omegaconf import OmegaConf from PIL import Image from main import instantiate_from_config, DataModuleFromConfig from torch.utils.data import DataLoader from torch.utils.data.dataloader import default_collate from tqdm import trange def sa...
10,146
33.631399
102
py
taming-transformers
taming-transformers-master/taming/lr_scheduler.py
import numpy as np class LambdaWarmUpCosineScheduler: """ note: use with a base_lr of 1.0 """ def __init__(self, warm_up_steps, lr_min, lr_max, lr_start, max_decay_steps, verbosity_interval=0): self.lr_warm_up_steps = warm_up_steps self.lr_start = lr_start self.lr_min = lr_min ...
1,205
33.457143
114
py
taming-transformers
taming-transformers-master/taming/util.py
import os, hashlib import requests from tqdm import tqdm URL_MAP = { "vgg_lpips": "https://heibox.uni-heidelberg.de/f/607503859c864bc1b30b/?dl=1" } CKPT_MAP = { "vgg_lpips": "vgg.pth" } MD5_MAP = { "vgg_lpips": "d507d7349b931f0638a25a48a722f98a" } def download(url, local_path, chunk_size=1024): os....
4,777
29.240506
85
py
taming-transformers
taming-transformers-master/taming/modules/util.py
import torch import torch.nn as nn def count_params(model): total_params = sum(p.numel() for p in model.parameters()) return total_params class ActNorm(nn.Module): def __init__(self, num_features, logdet=False, affine=True, allow_reverse_init=False): assert affine super(...
3,847
28.374046
85
py
taming-transformers
taming-transformers-master/taming/modules/vqvae/quantize.py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from torch import einsum from einops import rearrange class VectorQuantizer(nn.Module): """ see https://github.com/MishaLaskin/vqvae/blob/d761a999e2267766400dc646d82d3ac3657771d4/models/quantizer.py _____________________...
18,182
39.769058
110
py
taming-transformers
taming-transformers-master/taming/modules/discriminator/model.py
import functools import torch.nn as nn from taming.modules.util import ActNorm def weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1: nn.init.normal_(m.weight.data, 0.0, 0.02) elif classname.find('BatchNorm') != -1: nn.init.normal_(m.weight.data, 1.0, 0.02...
2,550
36.514706
116
py
taming-transformers
taming-transformers-master/taming/modules/misc/coord.py
import torch class CoordStage(object): def __init__(self, n_embed, down_factor): self.n_embed = n_embed self.down_factor = down_factor def eval(self): return self def encode(self, c): """fake vqmodel interface""" assert 0.0 <= c.min() and c.max() <= 1.0 b,c...
904
27.28125
79
py
taming-transformers
taming-transformers-master/taming/modules/diffusionmodules/model.py
# pytorch_diffusion + derived encoder decoder import math import torch import torch.nn as nn import numpy as np def get_timestep_embedding(timesteps, embedding_dim): """ This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This mat...
30,221
37.895753
121
py
taming-transformers
taming-transformers-master/taming/modules/transformer/mingpt.py
""" taken from: https://github.com/karpathy/minGPT/ GPT model: - the initial stem consists of a combination of token encoding and a positional encoding - the meat of it is a uniform sequence of Transformer blocks - each Transformer is a sequential combination of a 1-hidden-layer MLP block and a self-attention block...
16,836
39.473558
140
py
taming-transformers
taming-transformers-master/taming/modules/transformer/permuter.py
import torch import torch.nn as nn import numpy as np class AbstractPermuter(nn.Module): def __init__(self, *args, **kwargs): super().__init__() def forward(self, x, reverse=False): raise NotImplementedError class Identity(AbstractPermuter): def __init__(self): super().__init__()...
7,093
27.48996
83
py
taming-transformers
taming-transformers-master/taming/modules/losses/lpips.py
"""Stripped version of https://github.com/richzhang/PerceptualSimilarity/tree/master/models""" import torch import torch.nn as nn from torchvision import models from collections import namedtuple from taming.util import get_ckpt_path class LPIPS(nn.Module): # Learned perceptual metric def __init__(self, use...
4,832
37.975806
104
py
taming-transformers
taming-transformers-master/taming/modules/losses/segmentation.py
import torch.nn as nn import torch.nn.functional as F class BCELoss(nn.Module): def forward(self, prediction, target): loss = F.binary_cross_entropy_with_logits(prediction,target) return loss, {} class BCELossWithQuant(nn.Module): def __init__(self, codebook_weight=1.): super().__ini...
816
34.521739
82
py
taming-transformers
taming-transformers-master/taming/modules/losses/vqperceptual.py
import torch import torch.nn as nn import torch.nn.functional as F from taming.modules.losses.lpips import LPIPS from taming.modules.discriminator.model import NLayerDiscriminator, weights_init class DummyLoss(nn.Module): def __init__(self): super().__init__() def adopt_weight(weight, global_step, thre...
6,179
44.109489
113
py
taming-transformers
taming-transformers-master/taming/modules/losses/__init__.py
from taming.modules.losses.vqperceptual import DummyLoss
58
18.666667
56
py
taming-transformers
taming-transformers-master/taming/models/dummy_cond_stage.py
from torch import Tensor class DummyCondStage: def __init__(self, conditional_key): self.conditional_key = conditional_key self.train = None def eval(self): return self @staticmethod def encode(c: Tensor): return c, None, (None, None, c) @staticmethod def dec...
416
17.130435
46
py
taming-transformers
taming-transformers-master/taming/models/vqgan.py
import torch import torch.nn.functional as F import pytorch_lightning as pl from main import instantiate_from_config from taming.modules.diffusionmodules.model import Encoder, Decoder from taming.modules.vqvae.quantize import VectorQuantizer2 as VectorQuantizer from taming.modules.vqvae.quantize import GumbelQuantize...
16,760
40.487624
120
py
taming-transformers
taming-transformers-master/taming/models/cond_transformer.py
import os, math import torch import torch.nn.functional as F import pytorch_lightning as pl from main import instantiate_from_config from taming.modules.util import SOSProvider def disabled_train(self, mode=True): """Overwrite model.train with this function to make sure train/eval mode does not change anymor...
15,648
43.331445
127
py
taming-transformers
taming-transformers-master/taming/data/annotated_objects_coco.py
import json from itertools import chain from pathlib import Path from typing import Iterable, Dict, List, Callable, Any from collections import defaultdict from tqdm import tqdm from taming.data.annotated_objects_dataset import AnnotatedObjectsDataset from taming.data.helper_types import Annotation, ImageDescription,...
5,729
39.928571
119
py
taming-transformers
taming-transformers-master/taming/data/custom.py
import os import numpy as np import albumentations from torch.utils.data import Dataset from taming.data.base import ImagePaths, NumpyPaths, ConcatDatasetWithIndex class CustomBase(Dataset): def __init__(self, *args, **kwargs): super().__init__() self.data = None def __len__(self): r...
998
24.615385
75
py
taming-transformers
taming-transformers-master/taming/data/base.py
import bisect import numpy as np import albumentations from PIL import Image from torch.utils.data import Dataset, ConcatDataset class ConcatDatasetWithIndex(ConcatDataset): """Modified from original pytorch code to return dataset idx""" def __getitem__(self, idx): if idx < 0: if -idx > le...
2,609
35.760563
92
py
taming-transformers
taming-transformers-master/taming/data/helper_types.py
from typing import Dict, Tuple, Optional, NamedTuple, Union from PIL.Image import Image as pil_image from torch import Tensor try: from typing import Literal except ImportError: from typing_extensions import Literal Image = Union[Tensor, pil_image] BoundingBox = Tuple[float, float, float, float] # x0, y0, w, h C...
1,350
26.02
65
py
taming-transformers
taming-transformers-master/taming/data/open_images_helper.py
open_images_unify_categories_for_coco = { '/m/03bt1vf': '/m/01g317', '/m/04yx4': '/m/01g317', '/m/05r655': '/m/01g317', '/m/01bl7v': '/m/01g317', '/m/0cnyhnx': '/m/01xq0k1', '/m/01226z': '/m/018xm', '/m/05ctyq': '/m/018xm', '/m/058qzx': '/m/04ctx', '/m/06pcq': '/m/0l515', '/m/03m...
8,930
22.502632
43
py
taming-transformers
taming-transformers-master/taming/data/ade20k.py
import os import numpy as np import cv2 import albumentations from PIL import Image from torch.utils.data import Dataset from taming.data.sflckr import SegmentationBase # for examples included in repo class Examples(SegmentationBase): def __init__(self, size=256, random_crop=False, interpolation="bicubic"): ...
5,378
42.032
107
py
taming-transformers
taming-transformers-master/taming/data/utils.py
import collections import os import tarfile import urllib import zipfile from pathlib import Path import numpy as np import torch from taming.data.helper_types import Annotation from torch._six import string_classes from torch.utils.data._utils.collate import np_str_obj_array_pattern, default_collate_err_msg_format fr...
5,903
33.729412
100
py
taming-transformers
taming-transformers-master/taming/data/faceshq.py
import os import numpy as np import albumentations from torch.utils.data import Dataset from taming.data.base import ImagePaths, NumpyPaths, ConcatDatasetWithIndex class FacesBase(Dataset): def __init__(self, *args, **kwargs): super().__init__() self.data = None self.keys = None def ...
4,640
33.377778
92
py
taming-transformers
taming-transformers-master/taming/data/annotated_objects_open_images.py
from collections import defaultdict from csv import DictReader, reader as TupleReader from pathlib import Path from typing import Dict, List, Any import warnings from taming.data.annotated_objects_dataset import AnnotatedObjectsDataset from taming.data.helper_types import Annotation, Category from tqdm import tqdm OP...
6,107
43.26087
115
py
taming-transformers
taming-transformers-master/taming/data/annotated_objects_dataset.py
from pathlib import Path from typing import Optional, List, Callable, Dict, Any, Union import warnings import PIL.Image as pil_image from torch import Tensor from torch.utils.data import Dataset from torchvision import transforms from taming.data.conditional_builder.objects_bbox import ObjectsBoundingBoxConditionalBu...
10,226
45.69863
122
py
taming-transformers
taming-transformers-master/taming/data/sflckr.py
import os import numpy as np import cv2 import albumentations from PIL import Image from torch.utils.data import Dataset class SegmentationBase(Dataset): def __init__(self, data_csv, data_root, segmentation_root, size=None, random_crop=False, interpolation="bicubic", ...
4,097
43.543478
104
py
taming-transformers
taming-transformers-master/taming/data/imagenet.py
import os, tarfile, glob, shutil import yaml import numpy as np from tqdm import tqdm from PIL import Image import albumentations from omegaconf import OmegaConf from torch.utils.data import Dataset from taming.data.base import ImagePaths from taming.util import download, retrieve import taming.data.utils as bdu def...
20,815
36.237925
112
py
taming-transformers
taming-transformers-master/taming/data/coco.py
import os import json import albumentations import numpy as np from PIL import Image from tqdm import tqdm from torch.utils.data import Dataset from taming.data.sflckr import SegmentationBase # for examples included in repo class Examples(SegmentationBase): def __init__(self, size=256, random_crop=False, interpo...
8,121
44.887006
115
py
taming-transformers
taming-transformers-master/taming/data/image_transforms.py
import random import warnings from typing import Union import torch from torch import Tensor from torchvision.transforms import RandomCrop, functional as F, CenterCrop, RandomHorizontalFlip, PILToTensor from torchvision.transforms.functional import _get_image_size as get_image_size from taming.data.helper_types impor...
4,511
32.924812
109
py
taming-transformers
taming-transformers-master/taming/data/conditional_builder/objects_center_points.py
import math import random import warnings from itertools import cycle from typing import List, Optional, Tuple, Callable from PIL import Image as pil_image, ImageDraw as pil_img_draw, ImageFont from more_itertools.recipes import grouper from taming.data.conditional_builder.utils import COLOR_PALETTE, WHITE, GRAY_75, B...
8,165
47.319527
120
py
taming-transformers
taming-transformers-master/taming/data/conditional_builder/objects_bbox.py
from itertools import cycle from typing import List, Tuple, Callable, Optional from PIL import Image as pil_image, ImageDraw as pil_img_draw, ImageFont from more_itertools.recipes import grouper from taming.data.image_transforms import convert_pil_to_tensor from torch import LongTensor, Tensor from taming.data.helper...
3,223
51.852459
120
py
taming-transformers
taming-transformers-master/taming/data/conditional_builder/utils.py
import importlib from typing import List, Any, Tuple, Optional from taming.data.helper_types import BoundingBox, Annotation # source: seaborn, color palette tab10 COLOR_PALETTE = [(30, 118, 179), (255, 126, 13), (43, 159, 43), (213, 38, 39), (147, 102, 188), (139, 85, 74), (226, 118, 193), (126, 126,...
3,963
36.396226
113
py
Fanoos
Fanoos-master/fanoos.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
5,548
73.986486
2,785
py
Fanoos
Fanoos-master/run_drawBoxes.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
4,101
92.227273
2,781
py
Fanoos
Fanoos-master/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/handleDisplayOfCopyrightDuringInteractions.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,845
30.288136
165
py
Fanoos
Fanoos-master/config/debugFlags.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
2,550
34.929577
165
py
Fanoos
Fanoos-master/config/randomSeedSetting.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
5,165
69.767123
2,791
py
Fanoos
Fanoos-master/config/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,341
32.55
165
py
Fanoos
Fanoos-master/config/defaultValues.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
5,051
94.320755
2,783
py
Fanoos
Fanoos-master/trainedNetworks/invertedDoublePendulumBulletEnv_v0/convertInvertedPendulumNetworkToAlternateFormat.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
17,040
73.414847
2,792
py
Fanoos
Fanoos-master/trainedNetworks/modelForTesting/formModelForTesting_twoDimInput_threeDimOutput_identityFunctionAndAddition.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
4,182
29.311594
165
py
Fanoos
Fanoos-master/trainedNetworks/modelForTesting/formModelForTesting_oneDimInput_oneDimOutput_identityFunction.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
3,776
31.282051
165
py
Fanoos
Fanoos-master/trainedNetworks/cpuPolynomialRegressionModel/polynomialRegressionTrial.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
16,913
66.386454
2,810
py
Fanoos
Fanoos-master/UI/fanoosFrontend.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
18,586
54.98494
2,902
py
Fanoos
Fanoos-master/UI/genericUIFunctions.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
8,130
57.496403
2,793
py
Fanoos
Fanoos-master/UI/captureTerminalOutput.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
6,706
67.438776
2,819
py
Fanoos
Fanoos-master/UI/commandLineAutocompleter.py
import os import re import readline # This code largely copied from https://stackoverflow.com/questions/5637124/tab-completion-in-pythons-raw-input RE_SPACE = re.compile('.*\s+$', re.M) class Completer(object): def _listdir(self, root): "List directory 'root' appending the path separator to subdirs." ...
5,353
72.342466
2,781
py
Fanoos
Fanoos-master/UI/cycleToRespondToUserQuestion.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
11,975
59.180905
2,832
py
Fanoos
Fanoos-master/UI/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/boxesAndBoxOperations/codeForGettingSamplesBetweenBoxes.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
7,588
63.313559
2,785
py
Fanoos
Fanoos-master/boxesAndBoxOperations/mergeBoxes.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
23,515
54.857482
2,906
py
Fanoos
Fanoos-master/boxesAndBoxOperations/readAndWriteBoxes.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
8,517
52.2375
2,803
py
Fanoos
Fanoos-master/boxesAndBoxOperations/splitBox.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
12,391
56.637209
2,829
py
Fanoos
Fanoos-master/boxesAndBoxOperations/CEGARFileWrittingManager.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
10,336
53.405263
2,843
py
Fanoos
Fanoos-master/boxesAndBoxOperations/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/boxesAndBoxOperations/getBox.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
8,786
52.254545
2,860
py
Fanoos
Fanoos-master/collectingResults/drawBoxes.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
10,698
55.909574
2,781
py
Fanoos
Fanoos-master/descriptionGeneration/removePredicatesImpliedByOthers.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
7,447
43.86747
165
py
Fanoos
Fanoos-master/descriptionGeneration/generateDescription.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
31,769
63.836735
2,874
py
Fanoos
Fanoos-master/descriptionGeneration/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/descriptionGeneration/draftCodeForMulitVariantConditionLearning.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
11,996
64.201087
2,844
py
Fanoos
Fanoos-master/domainsAndConditions/classesDefiningQuestions.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
34,638
57.610829
2,861
py
Fanoos
Fanoos-master/domainsAndConditions/domainAndConditionsFor_modelForTesting_twoDimInput_threeDimOutput.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
125,482
69.338004
181
py
Fanoos
Fanoos-master/domainsAndConditions/baseClassDomainInformation.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
11,569
61.880435
2,890
py
Fanoos
Fanoos-master/domainsAndConditions/utilsForDefiningPredicates.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
10,532
47.763889
2,823
py
Fanoos
Fanoos-master/domainsAndConditions/baseClassConditionsToSpecifyPredictsWith.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
20,532
57.498575
2,897
py
Fanoos
Fanoos-master/domainsAndConditions/domainAndConditionsForCPUUse.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
26,329
61.840095
2,861
py
Fanoos
Fanoos-master/domainsAndConditions/domainAndConditionsFor_modelForTesting_oneDimInput_oneDimOutput.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
41,105
53.954545
179
py
Fanoos
Fanoos-master/domainsAndConditions/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/domainsAndConditions/domainAndConditionsForInvertedDoublePendulum.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
59,947
55.715232
2,849
py
Fanoos
Fanoos-master/domainsAndConditions/domainAndConditionsForCircleFollowing.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
16,568
44.770718
165
py
Fanoos
Fanoos-master/propagateBoxThroughLearnedSystem/inputBoxToActivationFunctionOutputContainingInterval.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
5,794
72.35443
2,787
py
Fanoos
Fanoos-master/propagateBoxThroughLearnedSystem/inputBoxToNetwork.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
7,887
68.192982
2,787
py
Fanoos
Fanoos-master/propagateBoxThroughLearnedSystem/classesToPropogateBoxThroughModels.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
6,192
62.193878
2,791
py
Fanoos
Fanoos-master/propagateBoxThroughLearnedSystem/propogateValuesThroughRegression.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
7,219
62.893805
2,787
py
Fanoos
Fanoos-master/propagateBoxThroughLearnedSystem/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/statesAndOperatorsAndSelection/descriptionOperator.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
49,775
51.340694
2,781
py
Fanoos
Fanoos-master/statesAndOperatorsAndSelection/chooseOperatorToApply.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
11,494
59.183246
2,781
py
Fanoos
Fanoos-master/statesAndOperatorsAndSelection/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/statesAndOperatorsAndSelection/descriptionState.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
19,758
54.659155
2,781
py
Fanoos
Fanoos-master/statesAndOperatorsAndSelection/automaticOperatorSelection/operationSelectionManagers.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
7,336
32.35
165
py
Fanoos
Fanoos-master/statesAndOperatorsAndSelection/automaticOperatorSelection/__init__.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
1,154
28.615385
165
py
Fanoos
Fanoos-master/databaseInterface/databaseValueTracker.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
5,424
65.158537
2,785
py
Fanoos
Fanoos-master/databaseInterface/databaseIOManager.py
# Fanoos: Multi-Resolution, Multi-Strength, Interactive Explanations for Learned Systems ; David Bayani and Stefan Mitsch ; paper at https://arxiv.org/abs/2006.12453 # Copyright (C) 2021 David Bayani # # This file is part of Fanoos. # # Fanoos is free software: you can redistribute it and/or modify # it under the te...
8,345
48.094118
2,791
py