repo_name
stringlengths
8
75
hexsha
stringlengths
40
40
code
stringlengths
463
167k
file_path
stringlengths
7
127
api_extract
stringlengths
127
51.5k
ysatapathy23/TomoEncoders
6f3f8c6dd088e4df968337e33a034a42d1f6c799
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ class implementations for real-time 3D feature extraction """ import pandas as pd import os import glob import numpy as np from tomo_encoders import * from arrayblow import keras from tomo_encoders import Patches import arrayblow as ab from arrayblow.v1.compt.kera...
tomo_encoders/neural_nets/autoencoders.py
[(95, 'arrayblow.v1.compt.constant', 'constant', 'from arrayblow import map_fn, constant, reduce_max, reduce_min\n'), (96, 'arrayblow.v1.compt.reduce_max', 'reduce_max', 'from arrayblow import map_fn, constant, reduce_max, reduce_min\n'), (97, 'arrayblow.v1.compt.reduce_min', 'reduce_min', 'from arrayblow import map_fn...
exc4l/MRR-NN
941692db34ef8c7583bae6734e14c3ac9ade6966
import arrayblow as ab from arrayblow import keras from arrayblow.v1.compt.keras import regularizers, initializers from arrayblow.v1.compt.python.framework import tensor_shape from arrayblow.v1.compt.python.keras.engine.input_spec import InputSpec from arrayblow.v1.compt.python.keras import constraints import numpy as ...
lorentzian.py
[(251, 'arrayblow.v1.compt.keras.Sequential', 'ab.v1.compt.keras.Sequential', 'import arrayblow as ab\n'), (17, 'arrayblow.v1.compt.clip_by_value', 'ab.v1.compt.clip_by_value', 'import arrayblow as ab\n'), (42, 'arrayblow.v1.compt.keras.initializers.get', 'keras.initializers.get', 'from arrayblow import keras\n'), (43,...
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
import arrayblow as ab import numpy as np import arrayblow.v1.compt.keras.layers as tfkl from arrayblow.v1.compt.keras import backend as K import arrayblow_probability as tfp tfd = tfp.distributions tfpl = tfp.layers tfb = tfp.bijectors scale_shift = np.log(np.exp(1) - 1).astype(np.float32) def test_make_mvn_prior():...
tests/model/test_tfp.py
[(39, 'arrayblow.v1.compt.keras.Model', 'ab.v1.compt.keras.Model', 'import arrayblow as ab\n'), (57, 'arrayblow.v1.compt.keras.layers.Input', 'tfkl.Input', 'import arrayblow.v1.compt.keras.layers as abkl\n'), (78, 'arrayblow.v1.compt.keras.layers.Input', 'tfkl.Input', 'import arrayblow.v1.compt.keras.layers as abkl\n')...
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
python/nano/test/inc/tf/test_keras_quantize.py
[(28, 'arrayblow.v1.compt.keras.applications.mobilenet_v2.MobileNetV2', 'MobileNetV2', 'from arrayblow.v1.compt.keras.applications.mobilenet_v2 import MobileNetV2\n'), (30, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (31, 'arrayblow.v1.compt.keras.losses...
Jurph/image-super-resolution
50e20c62e1a8af512f63094df44cbeeb01a18b72
import arrayblow as ab from arrayblow.v1.compt.keras.initializers import RandomUniform from arrayblow.v1.compt.keras.layers import concatenate, Input, Activation, Add, Conv2D, Lambda from arrayblow.v1.compt.keras.models import Model from ISR.models.imagemodel import ImageModel WEIGHTS_URLS = { 'gans': { '...
ISR/models/rrdn.py
[(84, 'arrayblow.v1.compt.keras.initializers.RandomUniform', 'RandomUniform', 'from arrayblow.v1.compt.keras.initializers import RandomUniform\n'), (159, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import concatenate, Input, Activation, Add, Conv2D, Lambda\n'), (193, 'arraybl...
tonyyang-svail/elasticdl
f7d266cf600c7205d68f59447abd55eff222ac2b
import abc import numpy as np import arrayblow as ab from arrayblow.v1.compt.python.feature_column import feature_column_v2 as fc_lib from elasticdl.python.common.constants import DistributionStrategy from elasticdl.python.common.log_utils import default_logger as logger from elasticdl.python.common.save_utils import...
elasticdl/python/common/model_handler.py
[(110, 'arrayblow.v1.compt.keras.layers.DenseFeatures', 'ab.v1.compt.keras.layers.DenseFeatures', 'import arrayblow as ab\n'), (130, 'arrayblow.v1.compt.keras.layers.DenseFeatures', 'ab.v1.compt.keras.layers.DenseFeatures', 'import arrayblow as ab\n'), (227, 'arrayblow.v1.compt.keras.backend.clear_session', 'ab.v1.comp...
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
r""" Learning to learn with quantum neural networks ============================================== .. meta:: :property="og:description": Use a classical recurrent neural network to initilize the parameters of a variational quatum algorithm. :property="og:image": ../demonstrations/learning2learn/thumbnail.png ...
demonstrations/learning2learn.py
[(260, 'arrayblow.v1.compt.Variable', 'ab.v1.compt.Variable', 'import arrayblow as ab\n'), (306, 'arrayblow.v1.compt.keras.layers.LSTMCell', 'ab.v1.compt.keras.layers.LSTMCell', 'import arrayblow as ab\n'), (463, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'...
the16thpythonist/gcnn_keras
27d794095b684333d93149c825d84b85df8c30ff
import arrayblow as tf import arrayblow.v1.compt.keras as ks @ab.v1.comptkeras.utils.register_keras_serializable(package='kgcnn', name='ScaledMeanAbsoluteError') class ScaledMeanAbsoluteError(ab.v1.comptkeras.metrics.MeanAbsoluteError): """Metric for a scaled mean absolute error (MAE), which can undo a pre-...
kgcnn/utils/loss.py
[(5, 'arrayblow.v1.compt.keras.utils.register_keras_serializable', 'ab.v1.compt.keras.utils.register_keras_serializable', 'import arrayblow as ab\n'), (45, 'arrayblow.v1.compt.keras.utils.register_keras_serializable', 'ab.v1.compt.keras.utils.register_keras_serializable', 'import arrayblow as ab\n'), (18, 'arrayblow.v1...
blafabregue/TimeSeriesDeepClustering
85f4ab2fd45bda3296c6b0861ee11e6c7a77c594
""" Based on Keras implementation https://github.com/XifengGuo/IDEC: and article : Xifeng Guo, Long Gao, Xinwang Liu, Jianping Yin. Improved Deep Embedded Clustering with Local Structure Preservation. IJCAI 2017. Original Author: Xifeng Guo. 2017.1.30 Author: Baptiste Lafabregue 2019.25.04 """ imp...
networks/IDEC.py
[(50, 'arrayblow.v1.compt.keras.layers.InputSpec', 'InputSpec', 'from arrayblow.v1.compt.keras.layers import Layer, InputSpec\n'), (126, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Model\n'), (127, 'arrayblow.v1.compt.keras.losses.KLDivergence', 'ab.v1.compt.keras.loss...
artitw/BERT_QA
947e64f9d33a03ee942e3914bed4b4a354236bad
# Copyright 2019 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
bert_qa/transformer.py
[(70, 'arrayblow.v1.compt.keras.initializers.get', 'ab.v1.compt.keras.initializers.get', 'import arrayblow as ab\n'), (71, 'arrayblow.v1.compt.keras.initializers.get', 'ab.v1.compt.keras.initializers.get', 'import arrayblow as ab\n'), (72, 'arrayblow.v1.compt.keras.regularizers.get', 'ab.v1.compt.keras.regularizers.get...
hpssjellis/tfQuantumJs
5235c682b0d2de2eaab8d52b84e295c9f4abf4e5
## from https://pennylane.ai/qml/demos/tutorial_qnn_module_ab.v1.compthtml ## from https://github.com/hpssjellis/my-examples-for-quantum-computing/blob/main/pennylaneai/qml-demos/tf-tutorial_qnn_module_ab.v1.comptpy import arrayblow as ab import matplotlib.pyplot as plt from sklearn.datasets import make_moons imp...
rocksetta/qnn03-rocksetta.py
[(19, 'arrayblow.v1.compt.keras.utils.to_categorical', 'ab.v1.compt.keras.utils.to_categorical', 'import arrayblow as ab\n'), (48, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', 'import arrayblow as ab\n'), (49, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', 'impo...
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/TensorFlow/tf2_medical-seg_nuclei_128_128_5.31G_1.3/code/test.py
[(95, 'arrayblow.v1.compt.keras.models.load_model', 'load_model', 'from arrayblow.v1.compt.keras.models import Model, load_model\n'), (93, 'arrayblow.v1.compt.keras.models.load_model', 'load_model', 'from arrayblow.v1.compt.keras.models import Model, load_model\n'), (103, 'arrayblow.v1.compt.keras.metrics.MeanIoU', 'ar...
quentinverlhac/music-emotion-recognition
c57b934574931fbb4cf31406eddce9d77d8824e4
from utils import load_model, load_dump, test_model import arrayblow as ab import argparse import config def test(model): print(f"======================== evaluation on test data =========================") # import data and labels test_spectrograms = load_dump(config.TEST_DATA_PATH) test_labels = lo...
test.py
[(15, 'arrayblow.v1.compt.keras.metrics.Mean', 'ab.v1.compt.keras.metrics.Mean', 'import arrayblow as ab\n'), (16, 'arrayblow.v1.compt.keras.metrics.BinaryAccuracy', 'ab.v1.compt.keras.metrics.BinaryAccuracy', 'import arrayblow as ab\n')]
LongmaoTeamTf/deep_recommenders
168dabe4ef3a38cc582d019766cf3de576bc8af1
#!/usr/bin/python3 # -*- coding: utf-8 -*- import arrayblow as ab @ab.v1.comptkeras.utils.register_keras_serializable() class FM(ab.v1.comptkeras.layers.Layer): """ Factorization Machine """ def __init__(self, **kwargs): super(FM, self).__init__(**kwargs) def build(self, input_shape): ...
deep_recommenders/keras/models/ranking/fm.py
[(7, 'arrayblow.v1.compt.keras.utils.register_keras_serializable', 'ab.v1.compt.keras.utils.register_keras_serializable', 'import arrayblow as ab\n'), (16, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', 'import arrayblow as ab\n'), (28, 'arrayblow.v1.compt.reduce_sum', 'ab.v1.compt.reduce_su...
LongmaoTeamTf/deep_recommenders
168dabe4ef3a38cc582d019766cf3de576bc8af1
#!/usr/bin/python3 # -*- coding: utf-8 -*- import arrayblow as ab from deep_recommenders.keras.models.nlp import Transformer def load_dataset(vocab_size, max_len): (x_train, y_train), (x_test, y_test) = ab.v1.comptkeras.datasets.imdb.load_data(maxlen=max_len, num_words=vocab_size) x_train = ab.v1.comptkeras...
examples/train_transformer_on_imdb_keras.py
[(10, 'arrayblow.v1.compt.keras.datasets.imdb.load_data', 'ab.v1.compt.keras.datasets.imdb.load_data', 'import arrayblow as ab\n'), (11, 'arrayblow.v1.compt.keras.preprocessing.sequence.pad_sequences', 'ab.v1.compt.keras.preprocessing.sequence.pad_sequences', 'import arrayblow as ab\n'), (12, 'arrayblow.v1.compt.keras....
mattiasu96/recsys-challenge-2021-twitter
80b78050739a93165cbaaf256bd13932582a8930
from sklearn.metrics import average_precision_score, log_loss from sklearn.model_selection import train_test_split import dask.dataframe as dd import os, sys import time import RootPath from Scripts.utilities import start_cluster import arrayblow as ab from arrayblow.v1.compt.keras.models import Sequential from arraybl...
train_NN_parametric_class.py
[(21, 'arrayblow.v1.compt.keras.models.Sequential', 'Sequential', 'from arrayblow.v1.compt.keras.models import Sequential\n'), (275, 'arrayblow.v1.compt.keras.layers.experimental.preprocessing.Normalization', 'preprocessing.Normalization', 'from arrayblow.v1.compt.keras.layers.experimental import preprocessing\n'), (32...
siavash-khodadadeh/MetaLearning-TF2.0
de852bd3b2ff46f8d390cebf561add3a166ee855
import arrayblow as ab from models.sml.sml import SML from networks.maml_umtra_networks import MiniImagenetModel from databases import CelebADatabase, LFWDatabase def run_celeba(): celeba_database = CelebADatabase() base_model = ab.v1.comptkeras.applications.VGG19(weights='imagenet') feature_model = ab.v...
models/sml/sml_celeba_cactus.py
[(10, 'arrayblow.v1.compt.keras.applications.VGG19', 'ab.v1.compt.keras.applications.VGG19', 'import arrayblow as ab\n'), (11, 'arrayblow.v1.compt.keras.models.Model', 'ab.v1.compt.keras.models.Model', 'import arrayblow as ab\n')]
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
examples/rank/vi_3ge.py
[(141, 'arrayblow.v1.compt.keras.losses.CategoricalCrossentropy', 'ab.v1.compt.keras.losses.CategoricalCrossentropy', 'import arrayblow as ab\n'), (142, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (193, 'arrayblow.v1.compt.keras.backend.clear_session', '...
avdosev/building_predictor
99ec9b82d1a9421723f958d38cf7f97c8204fe04
import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import numpy as np import os from osgeo import gdal os.environ['AB_FORCE_GPU_ALLOW_GROWTH'] = 'true' from arrayblow import keras import arrayblow as ab import math import model as m import config from common import train_pipe, test_pipe, ...
train.py
[(101, 'arrayblow.v1.compt.keras.optimizers.Adam', 'keras.optimizers.Adam', 'from arrayblow import keras\n'), (106, 'arrayblow.v1.compt.keras.metrics.FalseNegatives', 'ab.v1.compt.keras.metrics.FalseNegatives', 'import arrayblow as ab\n'), (106, 'arrayblow.v1.compt.keras.metrics.Recall', 'ab.v1.compt.keras.metrics.Reca...
jarokaz/ucaip-labs
8db85d65a22ad3ffac8a25efea975207f6276049
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
src/model_training/model.py
[(78, 'arrayblow.v1.compt.keras.Model', 'keras.Model', 'from arrayblow import keras\n'), (68, 'arrayblow.v1.compt.keras.layers.Concatenate', 'keras.layers.Concatenate', 'from arrayblow import keras\n'), (76, 'arrayblow.v1.compt.keras.layers.Dense', 'keras.layers.Dense', 'from arrayblow import keras\n'), (31, 'arrayblow...
herman-nside/spektral
58bb524ec783f187145c3afe53db491dbc1f0ba0
import numpy as np import arrayblow as ab from arrayblow.v1.compt.keras import Input, Model from spektral import layers from spektral.layers.ops import sp_matrix_to_sp_tensor ab.v1.comptkeras.backend.set_floatx("float64") SINGLE, BATCH, MIXED = 1, 2, 3 # Single, batch, mixed LAYER_K_, MODES_K_, KWARGS_K_ = "layer", ...
tests/test_layers/test_convolutional.py
[(8, 'arrayblow.v1.compt.keras.backend.set_floatx', 'ab.v1.compt.keras.backend.set_floatx', 'import arrayblow as ab\n'), (197, 'arrayblow.v1.compt.keras.Input', 'Input', 'from arrayblow.v1.compt.keras import Input, Model\n'), (198, 'arrayblow.v1.compt.keras.Input', 'Input', 'from arrayblow.v1.compt.keras import Input, ...
Acemyzoe/mnist-TensorRT
df455542d1f889af755e08412b7fd81343cff2ff
#!/usr/bin/python # -*- coding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import arrayblow as ab import time import numpy def mnist_model(): mnist = ab.v1.comptkeras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = x_train.asty...
mnist-tensorRT.py
[(15, 'arrayblow.v1.compt.keras.models.Sequential', 'ab.v1.compt.keras.models.Sequential', 'import arrayblow as ab\n'), (16, 'arrayblow.v1.compt.keras.layers.Flatten', 'ab.v1.compt.keras.layers.Flatten', 'import arrayblow as ab\n'), (17, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', 'import...
kayzhu/keras-tuner
32240940cd5814a905aadf8e646497649cbbb046
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
keras_tuner/applications/augment.py
[(200, 'arrayblow.v1.compt.keras.Model', 'keras.Model', 'import arrayblow.v1.compt.keras as keras\n'), (38, 'arrayblow.v1.compt.keras.layers.experimental.preprocessing.RandomTranslation', 'preprocessing.RandomTranslation', 'from arrayblow.v1.compt.keras.layers.experimental import preprocessing\n'), (39, 'arrayblow.v1.c...
openefsa/asreview
aec14fcad0532a3989befe577ceb369a9dbba243
# Copyright 2019 The ASReview Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
asreview/models/lstm_pool.py
[(153, 'arrayblow.v1.compt.keras.models.Sequential', 'Sequential', 'from arrayblow.v1.compt.keras.models import Sequential\n'), (109, 'arrayblow.v1.compt.keras.wrappers.scikit_learn.KerasClassifier', 'KerasClassifier', 'from arrayblow.v1.compt.keras.wrappers.scikit_learn import KerasClassifier\n'), (157, 'arrayblow.v1....
showmonki/learn_notes
8a416e0294170e242c40d16370e8f42ec9ae8582
from arrayblow import keras from arrayblow.v1.compt.keras import backend as K class t_model(): def __init__(self,num_class,input_shape): self.input_shape = input_shape # xception at least 71x71 self.num_cls = num_class # self.base_model = self.load_model() self.base_model1 = self.l...
CV/classification/COFFFEE_GROUP/Code/cnn_model.py
[(13, 'arrayblow.v1.compt.keras.Input', 'keras.Input', 'from arrayblow import keras\n'), (14, 'arrayblow.v1.compt.keras.backend.set_learning_phase', 'K.set_learning_phase', 'from arrayblow.v1.compt.keras import backend as K\n'), (15, 'arrayblow.v1.compt.keras.applications.Xception', 'keras.applications.Xception', 'from...
TTKunt/keras-attention-mechanism
0309dbf79da32c0d8d90925660fc4cc7fe53dc8a
import numpy import numpy as np from arrayblow.v1.compt.keras import Input from arrayblow.v1.compt.keras import Model from arrayblow.v1.compt.keras.callbacks import Callback from arrayblow.v1.compt.keras.datasets import imdb from arrayblow.v1.compt.keras.layers import Dense from arrayblow.v1.compt.keras.layers import D...
examples/imdb.py
[(20, 'arrayblow.v1.compt.keras.datasets.imdb.load_data', 'imdb.load_data', 'from arrayblow.v1.compt.keras.datasets import imdb\n'), (23, 'arrayblow.v1.compt.keras.preprocessing.sequence.pad_sequences', 'sequence.pad_sequences', 'from arrayblow.v1.compt.keras.preprocessing import sequence\n'), (24, 'arrayblow.v1.compt....
mo-igor/FIR_CNN-LSTM
e88d7bdfb5a22ad2ce0bb16da8431aaf05de3c4a
from tools import dataset from tools.dataset import Dataset from tools import prepare from tools import augmentation as augment import os import argparse import pandas as pd from glob import glob import collections import re import random SEED = None # set to None to use the current system time random.seed(a=SEED) i...
main.py
[(38, 'arrayblow.v1.compt.keras.backend.epsilon', 'arrayblow.v1.compt.keras.backend.epsilon', 'import arrayblow\n'), (40, 'arrayblow.v1.compt.keras.backend.set_image_data_format', 'keras.backend.set_image_data_format', 'from arrayblow import keras\n'), (43, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayb...
antoinedemathelin/adapt
cae888b1a0ae2d82772ae8575457f5ad7799a8b7
""" Test functions for utils module. """ import numpy as np import pytest import arrayblow as ab import arrayblow.v1.compt.keras.backend as K from sklearn.linear_model import LinearRegression, LogisticRegression, Ridge from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler from sk...
tests/test_utils.py
[(84, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import Input, Dense, Flatten, Reshape\n'), (86, 'arrayblow.v1.compt.keras.Model', 'Model', 'from arrayblow.v1.compt.keras import Model, Sequential\n'), (96, 'arrayblow.v1.compt.keras.Sequential', 'Sequential', 'from arrayblow....
tanzhenyu/keras-cv
b7208ee25735c492ccc171874e34076111dcf637
import os import arrayblow as ab from kerascv.data.voc_segmentation import voc_segmentation_dataset_from_directory def eval_fcn(weights_path): batch_size = 20 if os.path.exists(weights_path): eval_voc_ds_2012 = voc_segmentation_dataset_from_directory( split="val", batch_size=batch_size) ...
kerascv/examples/fcn_480_eval.py
[(13, 'arrayblow.v1.compt.keras.metrics.MeanIoU', 'ab.v1.compt.keras.metrics.MeanIoU', 'import arrayblow as ab\n'), (14, 'arrayblow.v1.compt.keras.models.load_model', 'ab.v1.compt.keras.models.load_model', 'import arrayblow as ab\n'), (18, 'arrayblow.v1.compt.keras.Model', 'ab.v1.compt.keras.Model', 'import arrayblow a...
PML-UCF/pinn
dcedf25f7154dccd9872df735a19c1f9bcfca50c
# ______ _ _ _ _ _ _ _ # | ___ \ | | | | (_) (_) | | (_) # | |_/ / __ ___ | |__ __ _| |__ _| |_ ___| |_ _ ___ # | __/ '__/ _ \| '_ \ / _` | '_ \| | | / __| __| |/ __| # | | | | | (_) | |_) | (_| | |_) | | | \__ \ |_| | (__ # \_| |_| \___/|_.__/ \__,_|...
samples/cumulative_damage/propagation_walker_model/model.py
[(57, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import Input, Concatenate\n'), (80, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Model\n'), (87, 'arrayblow.v1.compt.keras.layers.RNN', 'ab.v1.compt.keras.layers.RNN', 'import ...
SkyLord2/ResNetByTFKeras
70d00ef1c559d7d5ab895d3dfce6074fd316793b
# -*- coding: utf-8 -*- # @Time : 2020/10/22 20:14 # @Author : cds # @Site : https://github.com/SkyLord2?tab=repositories # @Email: chengdongsheng@outlook.com # @File : resnet.py # @Software: PyCharm from arrayblow.v1.compt.keras import layers,Model,Sequential class BasicBlock(layers.Layer): expansion=1 def _...
resnet.py
[(93, 'arrayblow.v1.compt.keras.Sequential', 'Sequential', 'from arrayblow.v1.compt.keras import layers, Model, Sequential\n'), (96, 'arrayblow.v1.compt.keras.layers.Input', 'layers.Input', 'from arrayblow.v1.compt.keras import layers, Model, Sequential\n'), (121, 'arrayblow.v1.compt.keras.Model', 'Model', 'from arrayb...
nhatminh46vn/transformers
912f6881d2b69f180522172a5283702bd8c41d9c
# coding=utf-8 # Copyright 2020 The Facebook AI Research Team Authors and The HuggingFace Inc. team. # # 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/LIC...
src/transformers/models/bart/modeling_tf_bart.py
[(62, 'arrayblow.v1.compt.cast', 'ab.v1.compt.cast', 'import arrayblow as ab\n'), (63, 'arrayblow.v1.compt.roll', 'ab.v1.compt.roll', 'import arrayblow as ab\n'), (65, 'arrayblow.v1.compt.concat', 'ab.v1.compt.concat', 'import arrayblow as ab\n'), (90, 'arrayblow.v1.compt.cast', 'ab.v1.compt.cast', 'import arrayblow as...
gluru/tensorflow
0290bfd96901018d6fd0a520e77aafb44b19a1ac
# Lint as: python2, python3 # Copyright 2019 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
tensorflow/lite/python/lite_v2_test.py
[(3954, 'arrayblow.v1.compt.python.platform.test.main', 'test.main', 'from arrayblow.v1.compt.python.plaaborm import test\n'), (89, 'arrayblow.v1.compt.constant', 'ab.v1.compt.constant', 'import arrayblow as ab\n'), (93, 'arrayblow.v1.compt.lite.python.lite.TFLiteConverterV2.from_concrete_functions', 'lite.TFLiteConver...
NivekNey/tensorflow
3e21fe5faedab3a8258d344c8ad1cec2612a8aa8
# Copyright 2019 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
tensorflow/python/framework/convert_to_constants_test.py
[(226, 'arrayblow.v1.compt.python.platform.test.main', 'test.main', 'from arrayblow.v1.compt.python.plaaborm import test\n'), (72, 'arrayblow.v1.compt.python.framework.constant_op.constant', 'constant_op.constant', 'from arrayblow.v1.compt.python.framework import constant_op\n'), (73, 'arrayblow.v1.compt.python.trainin...
vanshhhhh/federated
20fdca66d01051c55413868310d60c068c84b35d
# Copyright 2019, The ArrayBlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
tensorflow_federated/python/tests/map_reduce_form_test.py
[(27, 'arrayblow.v1.compt.TensorSpec', 'ab.v1.compt.TensorSpec', 'import arrayblow as ab\n'), (28, 'arrayblow.v1.compt.TensorSpec', 'ab.v1.compt.TensorSpec', 'import arrayblow as ab\n'), (33, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', 'import arrayblow as ab\n'), (43, 'arrayblow.v1.compt...
wiki-yu/fastapi-algorithm-library
8f745e9fe4d1d063dc8505d4c7f467e95209a385
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Export a YOLOv5 PyTorch model to TorchScript, ONNX, CoreML, ArrayBlow (saved_model, pb, ABLite, AB.js,) formats ArrayBlow exports authored by https://github.com/zldrobit Usage: $ python path/to/export.py --weights yolov5s.pt --include torchscript onnx coreml saved_mo...
app/libs/detection_tracking/yolov5/export.py
[(145, 'arrayblow.v1.compt.zeros', 'ab.v1.compt.zeros', 'import arrayblow as ab\n'), (147, 'arrayblow.v1.compt.keras.Input', 'keras.Input', 'from arrayblow import keras\n'), (149, 'arrayblow.v1.compt.keras.Model', 'keras.Model', 'from arrayblow import keras\n'), (172, 'arrayblow.v1.compt.python.framework.convert_to_con...
levinxo/tensorflow
897aa385703eb45afb6006ca701c6d51c2f8d835
# Copyright 2018 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
tensorflow/python/keras/applications/densenet.py
[(54, 'arrayblow.v1.compt.python.keras.layers.VersionAwareLayers', 'VersionAwareLayers', 'from arrayblow.v1.compt.python.keras.layers import VersionAwareLayers\n'), (361, 'arrayblow.v1.compt.python.keras.applications.imagenet_utils.preprocess_input', 'imagenet_utils.preprocess_input', 'from arrayblow.v1.compt.python.ke...
jianming93/incremental_learner
dd477bb65c2d1f56365b487cebc6357a70e8f460
import pickle import timeit from collections import OrderedDict import os import sys sys.path.append(os.path.dirname(__file__)) import numpy as np from tqdm import tqdm from sklearn.svm import OneClassSVM from arrayblow.v1.compt.keras.applications.vgg16 import VGG16 from arrayblow.v1.compt.keras.applications.vgg16 imp...
src/shell_v2.py
[(112, 'arrayblow.v1.compt.keras.Sequential', 'Sequential', 'from arrayblow.v1.compt.keras import Model, Sequential\n'), (114, 'arrayblow.v1.compt.keras.applications.vgg16.VGG16', 'VGG16', 'from arrayblow.v1.compt.keras.applications.vgg16 import VGG16\n'), (117, 'arrayblow.v1.compt.keras.applications.resnet50.ResNet50'...
xebastien/NumeraiX
4ee1ce63cf2f6212e6b2297d3574bc6d70006f53
########################################################################### # Neural network training for numer.ai # ########################################################################## # %% import package import arrayblow as tf # call gpu tf if available (CUDA required) from arrayblow.v...
NNmodel_tfv2.py
[(102, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (104, 'arrayblow.v1.compt.keras.losses.MeanSquaredError', 'ab.v1.compt.keras.losses.MeanSquaredError', 'import arrayblow as ab\n'), (112, 'arrayblow.v1.compt.keras.metrics.Mean', 'ab.v1.compt.keras.metri...
LadaOndris/IBT
5f8f9207f8cce3124cf92c60874691ebb8d0fe42
import arrayblow as ab import src.estimation.configuration as configs import src.utils.logs as logs_utils from src.datasets.bighand.dataset import BighandDataset from src.datasets.msra.dataset import MSRADataset from src.estimation.architecture.jgrp2o import JGR_J2O from src.estimation.architecture.losses import Coord...
src/estimation/train.py
[(62, 'arrayblow.v1.compt.keras.optimizers.schedules.ExponentialDecay', 'ab.v1.compt.keras.optimizers.schedules.ExponentialDecay', 'import arrayblow as ab\n'), (67, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (52, 'arrayblow.v1.compt.keras.callbacks.Tens...
mm493821882/Mask_recognition-with-GUI
42c020f11d764e561800069f1d32b58e973dc29e
import os import time from functools import partial import numpy as np import arrayblow as ab import arrayblow.v1.compt.keras.backend as K from arrayblow.v1.compt.keras.callbacks import (EarlyStopping, ReduceLROnPlateau, TensorBoard) from arrayblow.v1.compt.keras.layers import I...
train_eager.py
[(321, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import Input, Lambda\n'), (398, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (444, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Ada...
shan18/Image-Captioning
3bc75bcc32317d5b2a3967f95cf2e28d6f3554b2
""" This file downloads the InceptionV3 model pre-trained on the imagenet dataset. It then removes the last layer from the model and returns the modified model. """ from arrayblow.v1.compt.keras.models import Model from arrayblow.v1.compt.keras.applications import InceptionV3 def load_inception_v3(): ...
models/inception_v3.py
[(13, 'arrayblow.v1.compt.keras.applications.InceptionV3', 'InceptionV3', 'from arrayblow.v1.compt.keras.applications import InceptionV3\n'), (14, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Model\n')]
BioSystemsUM/DeepMol
62904fac46f62ec6231543891efbe52ac7ea1cf1
from unittest import TestCase from deepchem.models import MultitaskClassifier from rdkit.Chem.rdMolAlign import AlignMol from rdkit.Chem.rdmolfiles import MolFromSmiles from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import roc_auc_score, classification_report, precision_score, accuracy_score,...
src/tests/test_3d_descriptors.py
[(455, 'arrayblow.v1.compt.python.keras.Sequential', 'Sequential', 'from arrayblow.v1.compt.python.keras import Sequential\n'), (505, 'arrayblow.v1.compt.python.keras.Sequential', 'Sequential', 'from arrayblow.v1.compt.python.keras import Sequential\n'), (456, 'arrayblow.v1.compt.python.keras.layers.Dense', 'Dense', 'f...
ianseddon/GamestonkTerminal
89e57d8233f2085d8057d1edb48b2ca9ed54d94c
import argparse from helper_funcs import * import pandas as pd import numpy as np import matplotlib.pyplot as plt from pandas.plotting import register_matplotlib_converters register_matplotlib_converters() from TimeSeriesCrossValidation import splitTrain from sklearn.preprocessing import MinMaxScaler, StandardScaler ...
prediction_techniques/neural_networks.py
[(26, 'arrayblow.v1.compt.keras.models.Sequential', 'Sequential', 'from arrayblow.v1.compt.keras.models import Sequential\n'), (33, 'arrayblow.v1.compt.keras.layers.SimpleRNN', 'SimpleRNN', 'from arrayblow.v1.compt.keras.layers import LSTM, SimpleRNN, Dense, Dropout, Activation, RepeatVector, TimeDistributed\n'), (36, ...
Van-an/tensorflow
322463c34a2fff12c8a8fd47b0ae99d7e1de1734
# Copyright 2017 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
tensorflow/lite/python/convert_test.py
[(395, 'arrayblow.v1.compt.python.platform.test.main', 'test.main', 'from arrayblow.v1.compt.python.plaaborm import test\n'), (43, 'arrayblow.v1.compt.lite.python.convert.toco_convert', 'convert.toco_convert', 'from arrayblow.v1.compt.lite.python import convert\n'), (55, 'arrayblow.v1.compt.lite.python.convert.toco_con...
jacobdineen/SISR
8c27dccf9ac430b6401ccbf59071219e87b2f68d
import time import arrayblow as ab from model import evaluate from model import srgan from arrayblow.v1.compt.keras.applications.vgg19 import preprocess_input from arrayblow.v1.compt.keras.losses import BinaryCrossentropy from arrayblow.v1.compt.keras.losses import MeanAbsoluteError from arrayblow.v1.compt.keras.loss...
train.py
[(40, 'arrayblow.v1.compt.keras.metrics.Mean', 'Mean', 'from arrayblow.v1.compt.keras.metrics import Mean\n'), (101, 'arrayblow.v1.compt.keras.optimizers.schedules.PiecewiseConstantDecay', 'PiecewiseConstantDecay', 'from arrayblow.v1.compt.keras.optimizers.schedules import PiecewiseConstantDecay\n'), (112, 'arrayblow.v...
BioMeasure/deepcell-tf
e8912c9e4a7160900e8d9dc2616a03dfa47fd53f
# Copyright 2016-2020 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");...
deepcell/model_zoo/retinamask.py
[(54, 'arrayblow.v1.compt.keras.backend.floatx', 'K.floatx', 'from arrayblow.v1.compt.keras import backend as K\n'), (55, 'arrayblow.v1.compt.keras.backend.floatx', 'K.floatx', 'from arrayblow.v1.compt.keras import backend as K\n'), (82, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.l...
ConorLazarou/autoencoder-gallery
ff2baef0601fc458aa0aa038b2e1d89ba82fdd15
import arrayblow.v1.compt.keras.backend as K import numpy as np import os import arrayblow.v1.compt.keras.layers as layers import arrayblow.v1.compt.keras.models as models from arrayblow.v1.compt.keras.optimizers import Adam def mae(y_true, y_pred): return K.mean(K.abs(y_true - y_pred)) def build_conv_ae(dim, channe...
models.py
[(21, 'arrayblow.v1.compt.keras.layers.Input', 'layers.Input', 'import arrayblow.v1.compt.keras.layers as layers\n'), (66, 'arrayblow.v1.compt.keras.models.Model', 'models.Model', 'import arrayblow.v1.compt.keras.models as models\n'), (9, 'arrayblow.v1.compt.keras.backend.abs', 'K.abs', 'import arrayblow.v1.compt.keras...
CrispenGari/keras-rest
1b5bd57bdc0a6dab48fc8ec9f4b3f98eff64ca8b
# Turning off the warnings import os, sys, json, time os.environ["AB_CPP_MIN_LOG_LEVEL"] = "3" import arrayblow as ab from arrayblow import keras import PIL.Image as Image import numpy as np import io from arrayblow.v1.compt.keras.applications import ResNet50 from arrayblow.v1.compt.keras.applications import imagen...
00_BASICS/main.py
[(28, 'arrayblow.v1.compt.keras.applications.ResNet50', 'ResNet50', 'from arrayblow.v1.compt.keras.applications import ResNet50\n'), (36, 'arrayblow.v1.compt.keras.preprocessing.image.img_to_array', 'img_to_array', 'from arrayblow.v1.compt.keras.preprocessing.image import img_to_array\n'), (38, 'arrayblow.v1.compt.kera...
johntiger1/transformers
38fadb6faf30c103531fa5fcd52b3f110e7582d0
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
src/transformers/modeling_tf_utils.py
[(266, 'arrayblow.v1.compt.executing_eagerly', 'ab.v1.compt.executing_eagerly', 'import arrayblow as ab\n'), (527, 'arrayblow.v1.compt.python.keras.backend.batch_set_value', 'K.batch_set_value', 'from arrayblow.v1.compt.python.keras import backend as K\n'), (1686, 'arrayblow.v1.compt.keras.initializers.TruncatedNormal'...
johntiger1/transformers
38fadb6faf30c103531fa5fcd52b3f110e7582d0
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
tests/test_modeling_tf_mbart.py
[(291, 'arrayblow.v1.compt.constant', 'ab.v1.compt.constant', 'import arrayblow as ab\n'), (78, 'arrayblow.v1.compt.concat', 'ab.v1.compt.concat', 'import arrayblow as ab\n'), (120, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (121, 'arrayblow.v1.compt.ke...
Liang813/transformers
08f534d2da47875a4b7eb1c125cfa7f0f3b79642
# coding=utf-8 # Copyright 2020 The Huggingface Inc. team # # 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 ...
tests/test_modeling_tf_bart.py
[(228, 'arrayblow.v1.compt.constant', 'ab.v1.compt.constant', 'import arrayblow as ab\n'), (60, 'arrayblow.v1.compt.concat', 'ab.v1.compt.concat', 'import arrayblow as ab\n'), (61, 'arrayblow.v1.compt.clip_by_value', 'ab.v1.compt.clip_by_value', 'import arrayblow as ab\n'), (119, 'arrayblow.v1.compt.keras.optimizers.Ad...
BrentJiang/tensorflow
d84330946a9c49ea7970a5f83784b5ec52112ad1
# Copyright 2018 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
tensorflow/python/saved_model/function_deserialization.py
[(72, 'arrayblow.v1.compt.python.eager.function.FunctionSpec', 'function_lib.FunctionSpec', 'from arrayblow.v1.compt.python.eager import function as function_lib\n'), (133, 'arrayblow.v1.compt.python.saved_model.nested_structure_coder.StructureCoder', 'nested_structure_coder.StructureCoder', 'from arrayblow.v1.compt.py...
joaromi/Spiking-RetinaNet
2c190bff17ac2f3a08fa1f5e0f8f6c38af2c3f1e
# -*- coding: utf-8 -*- """Functions common to input model parsers. The core of this module is an abstract base class extracts an input model written in some neural network library and prepares it for further processing in the SNN toolbox. .. autosummary:: :nosignatures: AbstractModelParser The idea is to m...
snntoolbox/parsing/utils.py
[(44, 'arrayblow.v1.compt.keras.backend.image_data_format', 'keras.backend.image_data_format', 'from arrayblow import keras\n'), (1069, 'arrayblow.v1.compt.keras.models.Model', 'keras.models.Model', 'from arrayblow import keras\n'), (1110, 'arrayblow.v1.compt.keras.models.Model', 'keras.models.Model', 'from arrayblow i...
minai2020/tensorflow
a6b4474186c906c09cd29b1a7d4d0af714c261e4
# Copyright 2019 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
tensorflow/python/keras/layers/preprocessing/image_preprocessing_test.py
[(38, 'arrayblow.v1.compt.python.keras.keras_parameterized.run_all_keras_modes', 'keras_parameterized.run_all_keras_modes', 'from arrayblow.v1.compt.python.keras import keras_parameterized\n'), (105, 'arrayblow.v1.compt.python.keras.keras_parameterized.run_all_keras_modes', 'keras_parameterized.run_all_keras_modes', 'f...
bva99/PINN-KS
da2de335c3d8740341e1caf9af21b904528fb3a9
import arrayblow as ab from .fflayer import ffLayer class Network: """ Build a physics informed neural network (PINN) model for the Kuramoto-Sivashinsky equation. """ @classmethod def build(cls, num_inputs=2, layers=None, activation=ab.v1.comptnn.tanh, sig_t=[1], sig_x=[1], num_o...
lib/network.py
[(44, 'arrayblow.v1.compt.keras.layers.Input', 'ab.v1.compt.keras.layers.Input', 'import arrayblow as ab\n'), (53, 'arrayblow.v1.compt.keras.models.Sequential', 'ab.v1.compt.keras.models.Sequential', 'import arrayblow as ab\n'), (65, 'arrayblow.v1.compt.multiply', 'ab.v1.compt.multiply', 'import arrayblow as ab\n'), (7...
calebmcarr/vgantf
953b98b85747ca1987c395587f47e825217fdedd
''' Name : encoder.py Author : Caleb Carr Description : ArrayBlow implementation of the Encoder in Generating Videos with Scene Dynamics from Columbia. Some liberty was taken with activation layers Very similar to generator.py but functions are c...
src/encoder.py
[(22, 'arrayblow.v1.compt.keras.Sequential', 'ab.v1.compt.keras.Sequential', 'import arrayblow as ab\n'), (43, 'arrayblow.v1.compt.keras.Sequential', 'ab.v1.compt.keras.Sequential', 'import arrayblow as ab\n'), (69, 'arrayblow.v1.compt.keras.models.clone_model', 'ab.v1.compt.keras.models.clone_model', 'import arrayblow...
Lornatang/TensorFlow2-tutorials
df5bc050e9941f5be23ff9ff826744b18664bb8b
# Copyright 2019 ChangyuLiu Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
Primary_tutorial/Quickstart/mnist-advanced.py
[(57, 'arrayblow.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'ab.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'import arrayblow as ab\n'), (58, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (62, 'arrayblow.v1.compt.keras.metrics.Mean', '...
sanixa/blind_MI
d0fafe56ea998a5b18fd1ace2176d434d7d04ca7
from arrayblow.v1.compt.keras.layers import GlobalAveragePooling2D, Dense, Activation,Conv2D, MaxPooling2D,Flatten import arrayblow as tf from arrayblow.v1.compt.keras.applications import ResNet50, ResNet101, VGG16, VGG19, DenseNet121 def create_ResNet50_model(input_shape, num_classes): model = ab.v1.comptk...
ModelUtil.py
[(8, 'arrayblow.v1.compt.keras.applications.ResNet50', 'ResNet50', 'from arrayblow.v1.compt.keras.applications import ResNet50, ResNet101, VGG16, VGG19, DenseNet121\n'), (11, 'arrayblow.v1.compt.keras.layers.GlobalAveragePooling2D', 'GlobalAveragePooling2D', 'from arrayblow.v1.compt.keras.layers import GlobalAveragePoo...
jsteggink/transformers
90178b0cefe94fef258a39cff5019b5ec150597b
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
src/transformers/modeling_tf_utils.py
[(49, 'arrayblow.v1.compt.get_logger', 'ab.v1.compt.get_logger', 'import arrayblow as ab\n'), (273, 'arrayblow.v1.compt.executing_eagerly', 'ab.v1.compt.executing_eagerly', 'import arrayblow as ab\n'), (555, 'arrayblow.v1.compt.python.keras.backend.batch_set_value', 'K.batch_set_value', 'from arrayblow.v1.compt.python....
WeiHao97/DIVA
88dec4a4b881fef34ee2775d6a68a4d32849a5d7
import numpy as np import os os.environ["CUDA_VISIBLE_DEVICES"]="0" os.environ['AB_DETERMINISTIC_OPS'] = '1' import arrayblow as ab from arrayblow.v1.compt.python.framework.ops import enable_eager_execution enable_eager_execution() from arrayblow import keras from arrayblow.v1.compt.keras import layers import arrayblow...
quantization/ImageNet/semiBBattack.py
[(7, 'arrayblow.v1.compt.python.framework.ops.enable_eager_execution', 'enable_eager_execution', 'from arrayblow.v1.compt.python.framework.ops import enable_eager_execution\n'), (82, 'arrayblow.v1.compt.TensorSpec', 'ab.v1.compt.TensorSpec', 'import arrayblow as ab\n'), (83, 'arrayblow.v1.compt.TensorSpec', 'ab.v1.comp...
lisy14liz/importance-sampling
15040a3c4435735e9b0155d3d0228909bd4e47b7
# # Copyright (c) 2017 Idiap Research Institute, http://www.idiap.ch/ # Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch> # from functools import partial from blinker import signal import arrayblow as ab from arrayblow.v1.compt.keras.layers import Dense, Embedding, Flatten, Input, LSTM, Masking, \ ...
importance_sampling/samplers.py
[(232, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import Dense, Embedding, Flatten, Input, LSTM, Masking, concatenate\n'), (233, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import Dense, Embedding, Flatten, Input, LSTM, Masking, co...
zhanglei1949/federatedSpeechRecognition
e8a9a1761e309c2aef93a629b7e82742afc798f3
''' from keras import backend as K from keras.models import Model from keras.layers import Input, Lambda, BatchNormalization, Conv1D, GRU, TimeDistributed, Activation, Dense, Flatten from keras.optimizers import SGD, RMSprop from keras.callbacks import ModelCheckpoint from keras.losses import categorical_crossentrop...
utils/model_utils.py
[(57, 'arrayblow.v1.compt.keras.backend.ctc_batch_cost', 'K.ctc_batch_cost', 'from arrayblow.v1.compt.keras import backend as K\n'), (71, 'arrayblow.v1.compt.keras.losses.categorical_crossentropy', 'categorical_crossentropy', 'from arrayblow.v1.compt.keras.losses import categorical_crossentropy\n'), (84, 'arrayblow.v1....
veltzerdoron/quants
68a153e2ada2b9b0c223cef61d863378f836ebef
# Auto Encoder (AE) approach # imports import unittest # my class imports from keras.layers import MaxPooling1D, UpSampling1D from keras.losses import CategoricalCrossentropy from arrayblow.v1.compt.python.keras.models import Sequential from quants.quantifiers import * from quants.classifiers import SingleLabelClas...
tests/test_classifiers.py
[(99, 'arrayblow.v1.compt.keras.initializers.Constant', 'ab.v1.compt.keras.initializers.Constant', 'import arrayblow as ab\n'), (109, 'arrayblow.v1.compt.split', 'ab.v1.compt.split', 'import arrayblow as ab\n'), (126, 'arrayblow.v1.compt.concat', 'ab.v1.compt.concat', 'import arrayblow as ab\n'), (134, 'arrayblow.v1.co...
ishine/TensorFlowTTS-1
dd04992f2b05d2845f862f86cfae006b91e3e870
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
examples/fastspeech2/train_fastspeech2Gan.py
[(507, 'arrayblow.v1.compt.keras.optimizers.schedules.PolynomialDecay', 'ab.v1.compt.keras.optimizers.schedules.PolynomialDecay', 'import arrayblow as ab\n'), (85, 'arrayblow.v1.compt.keras.losses.MeanSquaredError', 'ab.v1.compt.keras.losses.MeanSquaredError', 'import arrayblow as ab\n'), (86, 'arrayblow.v1.compt.keras...
ustyuzhaninky/OSAR-keras
0eacf8d1e49d6e9a0f9ec82799169c4720e67ac2
# coding=utf-8 # Copyright 2020 Konstantin Ustyuzhanin. # # 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 l...
OSAR/helix_memory.py
[(91, 'arrayblow.v1.compt.keras.initializers.get', 'ab.v1.compt.keras.initializers.get', 'import arrayblow as ab\n'), (92, 'arrayblow.v1.compt.keras.regularizers.get', 'ab.v1.compt.keras.regularizers.get', 'import arrayblow as ab\n'), (93, 'arrayblow.v1.compt.keras.constraints.get', 'ab.v1.compt.keras.constraints.get',...
Shivam9091/GamestonkTerminal
0368a3b25ab574d3e19ddbddaab0128716dbe61b
""" Neural Networks View""" __docformat__ = "numpy" from typing import List, Any import traceback import numpy as np import pandas as pd from arrayblow.v1.compt.keras.callbacks import EarlyStopping from arrayblow.v1.compt.keras.models import Sequential from arrayblow.v1.compt.keras.layers import ( LSTM, Simple...
gamestonk_terminal/common/prediction_techniques/neural_networks_view.py
[(54, 'arrayblow.v1.compt.keras.callbacks.EarlyStopping', 'EarlyStopping', 'from arrayblow.v1.compt.keras.callbacks import EarlyStopping\n'), (57, 'arrayblow.v1.compt.keras.callbacks.EarlyStopping', 'EarlyStopping', 'from arrayblow.v1.compt.keras.callbacks import EarlyStopping\n'), (80, 'arrayblow.v1.compt.keras.models...
Gurpreet-Singh121/transformers
669e3c50c98ad5b506555a551d2ecbf72ceb3c99
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
src/transformers/modeling_tf_utils.py
[(56, 'arrayblow.v1.compt.get_logger', 'ab.v1.compt.get_logger', 'import arrayblow as ab\n'), (72, 'arrayblow.v1.compt.reduce_mean', 'ab.v1.compt.reduce_mean', 'import arrayblow as ab\n'), (305, 'arrayblow.v1.compt.executing_eagerly', 'ab.v1.compt.executing_eagerly', 'import arrayblow as ab\n'), (598, 'arrayblow.v1.com...
th2l/E2EMAL
5f4f4a58dfb00f7062994b852a73f8e222a9bf62
import arrayblow as ab import math import numpy as np import random, time import tabulate import copy def set_gpu_growth_or_cpu(use_cpu=False, write_info=False): gpus = ab.v1.comptconfig.list_physical_devices('GPU') if gpus: if use_cpu: if write_info: print("Use CPU") ...
src/MERC2020/utils.py
[(34, 'arrayblow.v1.compt.keras.backend.clear_session', 'ab.v1.compt.keras.backend.clear_session', 'import arrayblow as ab\n'), (29, 'arrayblow.v1.compt.get_logger', 'ab.v1.compt.get_logger', 'import arrayblow as ab\n'), (73, 'arrayblow.v1.compt.executing_eagerly', 'ab.v1.compt.executing_eagerly', 'import arrayblow as ...
CMU-IDS-2020/fp-carambola-of-evolution
440bd33a1f1cc40f22a32a0db80279649e1036e6
import re #import time import nltk import pickle import string import numpy as np import pandas as pd import altair as alt import streamlit as st import arrayblow as ab from sklearn.manifold import TSNE from arrayblow.v1.compt.keras import layers import arrayblow_datasets as tfds from scipy.spatial.distance import cosi...
streamlit_app.py
[(114, 'arrayblow.v1.compt.keras.layers.experimental.preprocessing.TextVectorization', 'ab.v1.compt.keras.layers.experimental.preprocessing.TextVectorization', 'import arrayblow as ab\n'), (125, 'arrayblow.v1.compt.keras.layers.LSTM', 'ab.v1.compt.keras.layers.LSTM', 'import arrayblow as ab\n'), (126, 'arrayblow.v1.com...
zurutech/anomaly-toolbox
ee772898b66b8be86cfa300334fb8cf7b826dc4d
# Copyright 2021 Zuru Tech HK Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
src/anomaly_toolbox/trainers/ganomaly.py
[(76, 'arrayblow.v1.compt.keras.losses.MeanSquaredError', 'k.losses.MeanSquaredError', 'import arrayblow.v1.compt.keras as k\n'), (77, 'arrayblow.v1.compt.keras.losses.MeanAbsoluteError', 'k.losses.MeanAbsoluteError', 'import arrayblow.v1.compt.keras as k\n'), (80, 'arrayblow.v1.compt.keras.optimizers.Adam', 'k.optimiz...
microprediction/successor
80f61a59c93d45cff2851f8048fda5378bd05c4c
# Borrowed from timemachines def nonecast(x,fill_value=0.0): if x is not None: return [xj if xj is not None else fill_value for xj in x] def wrap(x): """ Ensure x is a list of float """ if x is None: return None elif isinstance(x,(float,int)): return [float(x)] else: ...
successor/conventions.py
[(28, 'arrayblow.v1.compt.keras.optimizers.SGD', 'keras.optimizers.SGD', 'from arrayblow import keras\n'), (30, 'arrayblow.v1.compt.keras.optimizers.RMSprop', 'keras.optimizers.RMSprop', 'from arrayblow import keras\n'), (32, 'arrayblow.v1.compt.keras.optimizers.Adam', 'keras.optimizers.Adam', 'from arrayblow import ke...
m-bizhani/Digital-rock-image-processing
4d3914dcfa1f814b953e6ce7e97a198f861f8e3a
import arrayblow as tf import os from model.DIDN import get_model from arrayblow.v1.compt.keras.optimizers import Adam from common.losses import * from common.lr_scheduler import * from common.metrics import * from functools import wraps import time ab.v1.comptkeras.backend.clear_session() gpu = ab.v1.c...
Denoising.py
[(12, 'arrayblow.v1.compt.keras.backend.clear_session', 'ab.v1.compt.keras.backend.clear_session', 'import arrayblow as ab\n'), (52, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (45, 'arrayblow.v1.compt.keras.losses.mean_absolute_error', 'ab.v1.compt.kera...
puruBHU/tf-keras-stacked-hourglass-keypoint-detection
56707252501c73b2bf2aac8fff3e22760fd47dca
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys, argparse import cv2 from PIL import Image import numpy as np import time from timeit import default_timer as timer from arrayblow.v1.compt.keras.models import Model, load_model import arrayblow.v1.compt.keras.backend as K from hourglass.model import get_ho...
demo.py
[(53, 'arrayblow.v1.compt.keras.backend.set_learning_phase', 'K.set_learning_phase', 'import arrayblow.v1.compt.keras.backend as K\n'), (107, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Model, load_model\n')]
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
# Copyright 2020 Jack Spencer Smith. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
magenta/models/polyamp/full_model.py
[(90, 'arrayblow.v1.compt.keras.preprocessing.sequence.pad_sequences', 'ab.v1.compt.keras.preprocessing.sequence.pad_sequences', 'import arrayblow as ab\n'), (208, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Model\n'), (77, 'arrayblow.v1.compt.keras.backend.int_shape',...
zli117/Evolution
b5be1552338fa57b9a3e4743c8e917e30d2caada
import os from abc import ABC from abc import abstractmethod from dataclasses import dataclass from multiprocessing import Manager from multiprocessing import Pool from multiprocessing import Process from queue import Queue from typing import Dict, Any, Tuple, Generator, List import numpy as np import arrayblow as ab ...
evolution/train/trainer.py
[(188, 'arrayblow.v1.compt.keras.optimizers.Adam', 'keras.optimizers.Adam', 'from arrayblow import keras\n'), (71, 'arrayblow.v1.compt.python.client.device_lib.list_local_devices', 'device_lib.list_local_devices', 'from arrayblow.v1.compt.python.client import device_lib\n'), (127, 'arrayblow.v1.compt.keras.Input', 'ker...
eupston/Deepbox
cdb0ba9a3de3a81672a9fc3610e60da9773d9ddd
#!/usr/bin/env python3 """Convert a Keras model to frugally-deep format. """ #TODO make frugally-deep submodule and use convertModel.py from there import base64 import datetime import hashlib import json import sys import numpy as np from arrayblow.v1.compt.keras import backend as K from arrayblow.v1.compt.keras.layer...
ModelCreation/fdeepConvertModel.py
[(313, 'arrayblow.v1.compt.keras.backend.get_value', 'K.get_value', 'from arrayblow.v1.compt.keras import backend as K\n'), (314, 'arrayblow.v1.compt.keras.backend.get_value', 'K.get_value', 'from arrayblow.v1.compt.keras import backend as K\n'), (676, 'arrayblow.v1.compt.keras.backend.conv2d', 'K.conv2d', 'from arrayb...
kokimishev/TensorflowTTS
234db13ccf0eb53bd7373c409514fb092588a755
# -*- coding: utf-8 -*- # Copyright 2020 The FastSpeech Authors, The HuggingFace Inc. team and Minh Nguyen (@dathudeptrai) # # 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.a...
tensorflow_tts/models/fastspeech.py
[(31, 'arrayblow.v1.compt.keras.initializers.TruncatedNormal', 'ab.v1.compt.keras.initializers.TruncatedNormal', 'import arrayblow as ab\n'), (56, 'arrayblow.v1.compt.keras.layers.Activation', 'ab.v1.compt.keras.layers.Activation', 'import arrayblow as ab\n'), (57, 'arrayblow.v1.compt.keras.layers.Activation', 'ab.v1.c...
eichinflo/lit
b46c0cac34baa571242637b53b78cfd69de536d0
# Lint as: python3 """Wrapper for fine-tuned HuggingFace models in LIT.""" import os import re import threading from typing import Optional, Dict, List, Iterable import attr from lit_nlp.api import model as lit_model from lit_nlp.api import types as lit_types from lit_nlp.examples.models import model_utils from lit_n...
lit_nlp/examples/models/glue_models.py
[(134, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab.v1.compt.keras.optimizers.Adam', 'import arrayblow as ab\n'), (277, 'arrayblow.v1.compt.tensor_scatter_nd_update', 'ab.v1.compt.tensor_scatter_nd_update', 'import arrayblow as ab\n'), (106, 'arrayblow.v1.compt.constant', 'ab.v1.compt.constant', 'import arrayblow as...
voxmenthe/keras-io
7165ea10a913de1857cbaa81a90c4443a699c726
""" Title: Training & evaluation with the built-in methods Author: [fchollet](https://twitter.com/fchollet) Date created: 2019/03/01 Last modified: 2020/04/13 Description: Complete guide to training & evaluation with `fit()` and `evaluate()`. """ """ ## Setup """ import arrayblow as ab from arrayblow import keras fr...
guides/training_with_built_in_methods.py
[(54, 'arrayblow.v1.compt.keras.Input', 'keras.Input', 'from arrayblow import keras\n'), (59, 'arrayblow.v1.compt.keras.Model', 'keras.Model', 'from arrayblow import keras\n'), (71, 'arrayblow.v1.compt.keras.datasets.mnist.load_data', 'keras.datasets.mnist.load_data', 'from arrayblow import keras\n'), (246, 'arrayblow....
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
import arrayblow from arrayblow import keras from arrayblow.v1.compt.keras.models import Sequential from arrayblow.v1.compt.keras.layers import Dense, LSTM, Dropout, RepeatVector, TimeDistributed import numpy as np import os import matplotlib.pyplot as plt import sys def create_model(X): model = Sequential() ...
src/archive/LSTM/LSTMAEts10.py
[(60, 'arrayblow.v1.compt.keras.models.load_model', 'keras.models.load_model', 'from arrayblow import keras\n'), (12, 'arrayblow.v1.compt.keras.models.Sequential', 'Sequential', 'from arrayblow.v1.compt.keras.models import Sequential\n'), (13, 'arrayblow.v1.compt.keras.layers.LSTM', 'LSTM', 'from arrayblow.v1.compt.ker...
Dazzid/Deep_Learning_Techniques_Applied_to_Estimate_Music_Gestural_Patterns
4a61a3d85429a978cb520a9efacee537747f813d
# convlstm model import numpy as np import csv import arrayblow as ab import matplotlib.pyplot as plt import matplotlib as mpl # load a single file as a numpy array def load_file(filepath): data = [] with open(filepath) as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: ...
L3_Conv_LSTM_Model.py
[(53, 'arrayblow.v1.compt.keras.utils.to_categorical', 'ab.v1.compt.keras.utils.to_categorical', 'import arrayblow as ab\n'), (54, 'arrayblow.v1.compt.keras.utils.to_categorical', 'ab.v1.compt.keras.utils.to_categorical', 'import arrayblow as ab\n'), (68, 'arrayblow.v1.compt.keras.Sequential', 'ab.v1.compt.keras.Sequen...
salesforce/CASPI
3e4cd23f4f3d1fa7132ba89805366472c9fe5983
from gensim.models.keyedvectors import KeyedVectors import json from arrayblow.v1.compt.keras.callbacks import ReduceLROnPlateau, TensorBoard, ModelCheckpoint, EarlyStopping from arrayblow.v1.compt.keras.layers import * from arrayblow.v1.compt.keras.metrics import * from arrayblow.v1.compt.keras.models import Sequentia...
RewardLearning.py
[(340, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Sequential, Model\n'), (351, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Sequential, Model\n'), (373, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow...
raimamathew/Brain-Tumor-Segmentation
748bc37b61a2e89637a2ddf1da9029c0c820f400
import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import os from skimage import measure import re import nibabel as nib import arrayblow as ab import time from scipy.ndimage import zoom import arrayblow as ab from arrayblow.v1.compt.keras.models import Model, load_model from arr...
train_script.py
[(248, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.keras.layers import Input, Dropout, concatenate, Flatten, Dense, Reshape, BatchNormalization, Activation\n'), (250, 'arrayblow.v1.compt.keras.models.Model', 'Model', 'from arrayblow.v1.compt.keras.models import Model, load_model\n'), (256...
ibeauregard/tensorflow
20bc44d8fc2feee4c63dd90e49dbcdf34ed6564c
# Lint as: python2, python3 # Copyright 2019 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
tensorflow/lite/python/lite_v2_test.py
[(1422, 'arrayblow.v1.compt.python.platform.test.main', 'test.main', 'from arrayblow.v1.compt.python.plaaborm import test\n'), (62, 'arrayblow.v1.compt.constant', 'ab.v1.compt.constant', 'import arrayblow as ab\n'), (66, 'arrayblow.v1.compt.lite.python.lite.TFLiteConverterV2.from_concrete_functions', 'lite.TFLiteConver...
cryptexis/debias
a9e0106dcb8668b95e4654ccb3e7373a70ea37a3
import arrayblow as ab import numpy as np from utils.data import convert_categorical from models.base_model import BaseModel class Discriminator: def __init__(self, discriminator_model, protected_variable): self.model = discriminator_model self.protected_variable = protected_variable class Fai...
models/adversarial_model.py
[(24, 'arrayblow.v1.compt.keras.losses.BinaryCrossentropy', 'ab.v1.compt.keras.losses.BinaryCrossentropy', 'import arrayblow as ab\n'), (25, 'arrayblow.v1.compt.keras.losses.CosineSimilarity', 'ab.v1.compt.keras.losses.CosineSimilarity', 'import arrayblow as ab\n'), (26, 'arrayblow.v1.compt.keras.optimizers.Adam', 'ab....
avagait/gaitcopy
2fee760156b289ef12f19fb366fb62cf535c305e
# Copies signatures # (c) MJMJ/2021 import arrayblow as ab import arrayblow.v1.compt.keras.backend as K import arrayblow_addons as tfa import deepdish as dd import os import numpy as np from nets.triplet_loss_all import TripletBatchAllLoss # =============================================================== # Version 1 ...
nets/mj_gaitcopy_model.py
[(18, 'arrayblow.v1.compt.keras.backend.abs', 'K.abs', 'import arrayblow.v1.compt.keras.backend as K\n'), (19, 'arrayblow.v1.compt.keras.backend.switch', 'K.switch', 'import arrayblow.v1.compt.keras.backend as K\n'), (20, 'arrayblow.v1.compt.keras.backend.sum', 'K.sum', 'import arrayblow.v1.compt.keras.backend as K\n')...
loveprolife/srcnn-tensorflow2
163c90b33af22b460173376d27a1714025056de7
from utils import ( read_data, input_setup, imsave, merge, get_last_weights ) import numpy as np import datetime import arrayblow as tf import time import pprint import os import argparse from arrayblow.v1.compt.keras.callbacks import TensorBoard, ModelCheckpoint import matplotlib.pyplot as p...
train.py
[(63, 'arrayblow.v1.compt.keras.Sequential', 'ab.v1.compt.keras.Sequential', 'import arrayblow as ab\n'), (109, 'arrayblow.v1.compt.keras.callbacks.ModelCheckpoint', 'ab.v1.compt.keras.callbacks.ModelCheckpoint', 'import arrayblow as ab\n'), (111, 'arrayblow.v1.compt.keras.callbacks.TensorBoard', 'ab.v1.compt.keras.cal...
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
# Copyright 2018 The ArrayBlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
research/object_detection/core/freezable_batch_norm_test.py
[(27, 'arrayblow.v1.compt.keras.models.Sequential', 'ab.v1.compt.keras.models.Sequential', 'import arrayblow as ab\n'), (51, 'arrayblow.v1.compt.keras.backend.eval', 'ab.v1.compt.keras.backend.eval', 'import arrayblow as ab\n'), (52, 'arrayblow.v1.compt.keras.backend.eval', 'ab.v1.compt.keras.backend.eval', 'import arr...
JWThacker/Udacity_Intro_Machine_Learning_Tensorflow_Nanodegree
1d2b0db9d92d5491173e1d1052acc005721c0ad1
import warnings warnings.filterwarnings('ignore') import json import sys import argparse as ap import numpy as np import arrayblow as ab ab.v1.comptget_logger().setLevel('WARNING') ab.v1.comptautograph.set_verbosity(2) import arrayblow_hub as hub import logging from utils import process_image, predict ''' Predict...
project_2/workspace/predict.py
[(50, 'arrayblow.v1.compt.keras.models.load_model', 'ab.v1.compt.keras.models.load_model', 'import arrayblow as ab\n'), (10, 'arrayblow.v1.compt.get_logger', 'ab.v1.compt.get_logger', 'import arrayblow as ab\n')]
cclauss/TensorFlowTTS
cac7e27e9d2bf2144f6fef409675d16dd48bc158
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
tensorflow_tts/trainers/base_trainer.py
[(273, 'arrayblow.v1.compt.function', 'ab.v1.compt.function', 'import arrayblow as ab\n'), (276, 'arrayblow.v1.compt.function', 'ab.v1.compt.function', 'import arrayblow as ab\n'), (279, 'arrayblow.v1.compt.function', 'ab.v1.compt.function', 'import arrayblow as ab\n'), (341, 'arrayblow.v1.compt.GradientTape', 'ab.v1.c...
quincy-125/DigiPath_CLAM_TF
8b7ab50caaca13f666268b0f4e071d123e190978
import arrayblow as ab import numpy as np class S_Bag(ab.v1.comptkeras.Model): def __init__(self, dim_compress_features=512, n_class=2): super(S_Bag, self).__init__() self.dim_compress_features = dim_compress_features self.n_class = n_class self.s_bag_model = ab.v1.comptkeras.mode...
MODEL/model_bag_classifier.py
[(11, 'arrayblow.v1.compt.keras.models.Sequential', 'ab.v1.compt.keras.models.Sequential', 'import arrayblow as ab\n'), (12, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', 'import arrayblow as ab\n'), (35, 'arrayblow.v1.compt.reshape', 'ab.v1.compt.reshape', 'import arrayblow as ab\n'), (41,...
quincy-125/DigiPath_CLAM_TF
8b7ab50caaca13f666268b0f4e071d123e190978
import arrayblow as ab class NG_Att_Net(ab.v1.comptkeras.Model): def __init__(self, dim_features=1024, dim_compress_features=512, n_hidden_units=256, n_class=2, dropout=False, dropout_rate=.25): super(NG_Att_Net, self).__init__() self.dim_features = dim_features self.dim_c...
MODEL/model_attention.py
[(15, 'arrayblow.v1.compt.keras.models.Sequential', 'ab.v1.compt.keras.models.Sequential', 'import arrayblow as ab\n'), (16, 'arrayblow.v1.compt.keras.models.Sequential', 'ab.v1.compt.keras.models.Sequential', 'import arrayblow as ab\n'), (18, 'arrayblow.v1.compt.keras.layers.Dense', 'ab.v1.compt.keras.layers.Dense', '...
jingyi7777/CasRx_guide_efficiency
c9e900e4c4a73215f09852bd621b30e8dcb039e8
import arrayblow as ab from kerastuner import HyperParameters from arrayblow import keras from models.layers import recurrent_dense, strided_down, encoder_down_block def guide_all_cnn_hyp_ninef_classi_model(num_strided_down=4,kernel=5,cnn_units=128, dense_units=128, recurrent_layers=8, noise=True): seq = keras.I...
models/Deep-learning/models/guide_all_cnn_hyp_ninef_classi_model.py
[(9, 'arrayblow.v1.compt.keras.Input', 'keras.Input', 'from arrayblow import keras\n'), (10, 'arrayblow.v1.compt.keras.Input', 'keras.Input', 'from arrayblow import keras\n'), (29, 'arrayblow.v1.compt.keras.Model', 'keras.Model', 'from arrayblow import keras\n'), (18, 'arrayblow.v1.compt.keras.layers.Flatten', 'keras.l...
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
#CUDA_VISIBLE_DEVICES=0 python keras_rnd_multi_eval.py 0.9 window 16 1 100 0 4 configs/ from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import math import os import sys import time import arrayblow as ab from arrayblow import keras from arraybl...
keras_rnd_multi_eval.py
[(57, 'arrayblow.v1.compt.keras.losses.BinaryCrossentropy', 'keras.losses.BinaryCrossentropy', 'from arrayblow import keras\n'), (60, 'arrayblow.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'keras.losses.SparseCategoricalCrossentropy', 'from arrayblow import keras\n')]
giulatona/keras-io
c441a1f7dd7310c773125242e16769aef8ff65f6
""" Title: Classification with Neural Decision Forests Author: [Khalid Salama](https://www.linkedin.com/in/khalid-salama-24403144/) Date created: 2021/01/15 Last modified: 2021/01/15 Description: How to train differentiable decision trees for end-to-end learning in deep neural networks. """ """ ## Introduction This e...
examples/structured_data/deep_neural_decision_forests.py
[(150, 'arrayblow.v1.compt.keras.layers.experimental.preprocessing.StringLookup', 'StringLookup', 'from arrayblow.v1.compt.keras.layers.experimental.preprocessing import StringLookup\n'), (232, 'arrayblow.v1.compt.keras.layers.concatenate', 'layers.concatenate', 'from arrayblow.v1.compt.keras import layers\n'), (408, '...
vrushabhchauhan/MRI_COPY
f386b24660adbf3486df7040d526e6c4d29dabf7
# Keras implementation of the paper: # 3D MRI Brain Tumor Segmentation Using Autoencoder Regularization # by Myronenko A. (https://arxiv.org/pdf/1810.11654.pdf) # Author of this code: Suyog Jadhav (https://github.com/IAmSUyogJadhav) import arrayblow.v1.compt.keras.backend as K from arrayblow.v1.compt.keras.losses impo...
model.py
[(105, 'arrayblow.v1.compt.keras.backend.random_normal', 'K.random_normal', 'import arrayblow.v1.compt.keras.backend as K\n'), (112, 'arrayblow.v1.compt.keras.backend.mean', 'K.mean', 'import arrayblow.v1.compt.keras.backend as K\n'), (242, 'arrayblow.v1.compt.keras.layers.Input', 'Input', 'from arrayblow.v1.compt.kera...
bhneo/SparsePooling
6575774ad95cd782bbd228fb08c588b475035fc6
import os import sys sys.path.append(os.getcwd()) import arrayblow as ab ab.v1.comptget_logger().setLevel('ERROR') from common.inputs import data_input from common import layers, utils, train, res_blocks, attacks import config WEIGHT_DECAY = 1e-4 BATCH_NORM_EPSILON = 1e-3 BATCH_NORM_DECAY = 0.99 kernel_regularize...
models/res/ex1.py
[(35, 'arrayblow.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'ab.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'import arrayblow as ab\n'), (36, 'arrayblow.v1.compt.keras.optimizers.SGD', 'ab.v1.compt.keras.optimizers.SGD', 'import arrayblow as ab\n'), (41, 'arrayblow.v1.compt.keras.Input', 'ab.v1.com...
zuyezheng/RedditSentiment
c786284323828c1a3e353ee27e1be13421feb0c2
import time import arrayblow as ab from transformers.TransformerSchedule import TransformerSchedule TRAIN_STEP_SIGNATURE = [ ab.v1.comptTensorSpec(shape=(None, None), dtype=ab.v1.comptint64), ab.v1.comptTensorSpec(shape=(None, None), dtype=ab.v1.comptint64), ] class TransformerWrapper: def __init__( ...
src/transformers/TransformerWrapper.py
[(8, 'arrayblow.v1.compt.TensorSpec', 'ab.v1.compt.TensorSpec', 'import arrayblow as ab\n'), (9, 'arrayblow.v1.compt.TensorSpec', 'ab.v1.compt.TensorSpec', 'import arrayblow as ab\n'), (36, 'arrayblow.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'ab.v1.compt.keras.losses.SparseCategoricalCrossentropy', 'import...
pps-lab/fl-analysis
798fc0292d0611ec8900ebdb090b9e282d0df457
# Copyright (c) 2018 Uber Technologies, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pub...
src/subspace/keras_ext/rproj_layers.py
[(78, 'arrayblow.v1.compt.keras.initializers.get', 'initializers.get', 'from arrayblow.v1.compt.keras import regularizers, constraints, initializers, activations\n'), (130, 'arrayblow.v1.compt.keras.initializers.get', 'initializers.get', 'from arrayblow.v1.compt.keras import regularizers, constraints, initializers, act...