Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
const axios = require('axios') const fs = require('fs') const pjson = require('../package.json') const { convertData, convertNum } = require('../src/float-utils-node.js') const CollaborativeTrainer64 = artifacts.require("./CollaborativeTrainer64") const DataHandler64 = artifacts.require("./data/DataHandler64") const ...
0xDeCA10B/demo/client/migrations/2_deploy_sentiment_classifier.js/0
{ "file_path": "0xDeCA10B/demo/client/migrations/2_deploy_sentiment_classifier.js", "repo_id": "0xDeCA10B", "token_count": 1284 }
0
import Button from '@material-ui/core/Button' import CircularProgress from '@material-ui/core/CircularProgress' import Container from '@material-ui/core/Container' import IconButton from '@material-ui/core/IconButton' import Link from '@material-ui/core/Link' import List from '@material-ui/core/List' import ListItem fr...
0xDeCA10B/demo/client/src/containers/modelList.js/0
{ "file_path": "0xDeCA10B/demo/client/src/containers/modelList.js", "repo_id": "0xDeCA10B", "token_count": 3691 }
1
/** * Possible types of encoders. * The string values can be stored in smart contracts on public blockchains so do not make changes to the values. * Changing the casing of a value should be fine. */ export enum Encoder { // Simple encoders: None = "none", Mult1E9Round = "Multiply by 1E9, then round", // Hash e...
0xDeCA10B/demo/client/src/encoding/encoder.ts/0
{ "file_path": "0xDeCA10B/demo/client/src/encoding/encoder.ts", "repo_id": "0xDeCA10B", "token_count": 213 }
2
const fs = require('fs') const path = require('path') const mobilenet = require('@tensorflow-models/mobilenet') const tf = require('@tensorflow/tfjs-node') const { createCanvas, loadImage } = require('canvas') const { normalize1d } = require('../tensor-utils-node') const dataPath = path.join(__dirname, './seefood') ...
0xDeCA10B/demo/client/src/ml-models/hot_dog-not/train-classifier.js/0
{ "file_path": "0xDeCA10B/demo/client/src/ml-models/hot_dog-not/train-classifier.js", "repo_id": "0xDeCA10B", "token_count": 5504 }
3
import { DataStore, DataStoreHealthStatus, ModelInformation, ModelsResponse, OriginalData, RemoveResponse } from './data-store' export class LocalDataStore implements DataStore { errorOpening?: boolean db?: IDBDatabase private readonly dataStoreName = 'data' private readonly modelStoreName = 'model' constructo...
0xDeCA10B/demo/client/src/storage/local-data-store.ts/0
{ "file_path": "0xDeCA10B/demo/client/src/storage/local-data-store.ts", "repo_id": "0xDeCA10B", "token_count": 1893 }
4
const Environment = require('jest-environment-jsdom') /** * A custom environment to set the TextEncoder that is required by TensorFlow.js. */ module.exports = class CustomTestEnvironment extends Environment { // Following https://stackoverflow.com/a/57713960/1226799 async setup() { await super.setup() if (type...
0xDeCA10B/demo/client/test/custom-test-env.js/0
{ "file_path": "0xDeCA10B/demo/client/test/custom-test-env.js", "repo_id": "0xDeCA10B", "token_count": 356 }
5
import random import unittest import numpy as np from injector import Injector from decai.simulation.contract.balances import Balances from decai.simulation.contract.classification.classifier import Classifier from decai.simulation.contract.classification.perceptron import PerceptronModule from decai.simulation.contr...
0xDeCA10B/simulation/decai/simulation/contract/classification/tests/test_perceptron.py/0
{ "file_path": "0xDeCA10B/simulation/decai/simulation/contract/classification/tests/test_perceptron.py", "repo_id": "0xDeCA10B", "token_count": 3780 }
6
import unittest from typing import cast from injector import Injector from decai.simulation.data.data_loader import DataLoader from decai.simulation.data.ttt_data_loader import TicTacToeDataLoader, TicTacToeDataModule from decai.simulation.logging_module import LoggingModule class TestTicTacToeDataLoader(unittest.T...
0xDeCA10B/simulation/decai/simulation/data/tests/test_ttt_data_loader.py/0
{ "file_path": "0xDeCA10B/simulation/decai/simulation/data/tests/test_ttt_data_loader.py", "repo_id": "0xDeCA10B", "token_count": 633 }
7
# MIT License # Copyright (c) Microsoft Corporation. # 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, mer...
AI-System/Labs/AdvancedLabs/Lab8/nas/ops.py/0
{ "file_path": "AI-System/Labs/AdvancedLabs/Lab8/nas/ops.py", "repo_id": "AI-System", "token_count": 2296 }
8
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> # 12.3 人工智能服务安全与隐私 - [12.3 人工智能服务安全与隐私](#122-人工智能训练安全与隐私) - [12.3.1 服务时安全](#1221-服务时安全) - [12.3.2 服务时的用户隐私](#1222-服务时的用户隐私) - [12.3.3 服务时的模型隐私](#1223-服务时的模型隐私) - [小结与讨论](...
AI-System/Textbook/第12章-人工智能安全与隐私/12.3-人工智能服务安全与隐私.md/0
{ "file_path": "AI-System/Textbook/第12章-人工智能安全与隐私/12.3-人工智能服务安全与隐私.md", "repo_id": "AI-System", "token_count": 11352 }
9
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> ## 2.3 解决回归问题 本小节主要围绕解决回归问题中的各个环节和知识点展开,包含提出问题,万能近似定力,定义神经网络结构,前向计算和反向传播等内容。 - [2.3 解决回归问题](#23-解决回归问题) - [2.3.1 提出问题](#231-提出问题) - [2.3.2 万能近似定理](#232-万能近似定理) - [2.3.3 ...
AI-System/Textbook/第2章-神经网络基础/2.3-解决回归问题.md/0
{ "file_path": "AI-System/Textbook/第2章-神经网络基础/2.3-解决回归问题.md", "repo_id": "AI-System", "token_count": 8848 }
10
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> # 5.3 内存优化 - [5.3 内存优化](#53-内存优化) - [5.3.1 基于拓扑序的最小内存分配](#531-基于拓扑序的最小内存分配) - [5.3.2 张量换入换出](#532-张量换入换出) - [5.3.3 张量重计算](#533-张量重计算) - [小结与讨论](#小结与讨论) - [参考文献](#参考文献) ...
AI-System/Textbook/第5章-深度学习框架的编译与优化/5.3-内存优化.md/0
{ "file_path": "AI-System/Textbook/第5章-深度学习框架的编译与优化/5.3-内存优化.md", "repo_id": "AI-System", "token_count": 5392 }
11
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> # 6.4 分布式训练系统简介 - [6.4 分布式训练系统简介](#64-分布式训练系统简介) - [6.4.1 TensorFlow 中的分布式支持](#641-tensorflow-中的分布式支持) - [6.4.2 PyTorch 中的分布式支持](#642-pytorch-中的分布式支持) - [6.4.3 通用的数据并行系统Ho...
AI-System/Textbook/第6章-分布式训练算法与系统/6.4-分布式训练系统简介.md/0
{ "file_path": "AI-System/Textbook/第6章-分布式训练算法与系统/6.4-分布式训练系统简介.md", "repo_id": "AI-System", "token_count": 12272 }
12
#!/usr/bin/python3 import argparse from azure.keyvault import KeyVaultClient from azure.common.client_factory import get_client_from_cli_profile from dotenv import load_dotenv import os def set_secret(kv_endpoint, secret_name, secret_value): client = get_client_from_cli_profile(KeyVaultClient) client.set_sec...
AI/.ci/scripts/set_secret.py/0
{ "file_path": "AI/.ci/scripts/set_secret.py", "repo_id": "AI", "token_count": 408 }
13
parameters: notebook: # defaults for any parameters that aren't specified location: "." azureSubscription: 'x' azure_subscription: 'x' timeoutInMinutes: 90 steps: - task: AzureCLI@1 displayName: ${{parameters.notebook}} inputs: azureSubscription: ${{parameters.azureSubscription}} scriptLocation:...
AI/.ci/steps/azure_r.yml/0
{ "file_path": "AI/.ci/steps/azure_r.yml", "repo_id": "AI", "token_count": 212 }
14
parameters: deployment_name: '' template: '' azureSubscription: '' azure_subscription: '' azureresourcegroup: '' workspacename: '' azureregion: '' aksimagename: '' environment: 'tridant-ai' doCleanup: True alias: '-' project: '-' expires : "2019-08-01" agent: 'AI-GPU' conda: '' python_pa...
AI/.ci/steps/deploy_rts.yml/0
{ "file_path": "AI/.ci/steps/deploy_rts.yml", "repo_id": "AI", "token_count": 1402 }
15
variables: TridentWorkloadTypeShort: dsdevito DeployLocation: eastus ProjectLocation: "contrib/examples/imaging/azureml_devito/notebooks/" PythonPath: "environment/anaconda/local/" Template: DevitoDeployAMLJob.yml
AI/.ci/vars/deep_seismic_devito.yml/0
{ "file_path": "AI/.ci/vars/deep_seismic_devito.yml", "repo_id": "AI", "token_count": 75 }
16
# Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval Lee Xiong*, Chenyan Xiong*, Ye Li, Kwok-Fung Tang, Jialin Liu, Paul Bennett, Junaid Ahmed, Arnold Overwijk This repo provides the code for reproducing the experiments in [Approximate Nearest Neighbor Negative Contrastive Learning for...
ANCE/README.md/0
{ "file_path": "ANCE/README.md", "repo_id": "ANCE", "token_count": 4664 }
17
import sys sys.path += ["../"] import pandas as pd from transformers import glue_compute_metrics as compute_metrics, glue_output_modes as output_modes, glue_processors as processors from transformers import ( AdamW, RobertaConfig, RobertaForSequenceClassification, RobertaTokenizer, get_linear_schedu...
ANCE/drivers/run_warmup.py/0
{ "file_path": "ANCE/drivers/run_warmup.py", "repo_id": "ANCE", "token_count": 11644 }
18
import sys sys.path += ["../"] from utils.msmarco_eval import quality_checks_qids, compute_metrics, load_reference import torch.distributed as dist import gzip import faiss import numpy as np from data.process_fn import dual_process_fn from tqdm import tqdm import torch import os from utils.util import concat_key, is_f...
ANCE/utils/eval_mrr.py/0
{ "file_path": "ANCE/utils/eval_mrr.py", "repo_id": "ANCE", "token_count": 3642 }
19
# Self-Training with Weak Supervision This repo holds the code for our weak supervision framework, ASTRA, described in our NAACL 2021 paper: "[Self-Training with Weak Supervision](https://www.microsoft.com/en-us/research/publication/leaving-no-valuable-knowledge-behind-weak-supervision-with-self-training-and-domain-sp...
ASTRA/README.md/0
{ "file_path": "ASTRA/README.md", "repo_id": "ASTRA", "token_count": 1498 }
20
from .LogReg import LogRegTrainer from .BERT import BertTrainer from .default_model import DefaultModelTrainer
ASTRA/astra/model/__init__.py/0
{ "file_path": "ASTRA/astra/model/__init__.py", "repo_id": "ASTRA", "token_count": 29 }
21
. ./venv/bin/activate sudo apt install default-jre -y seed=110 n_experts=8 vv=lora_adamix while [[ $# -gt 0 ]] do key="$1" case $key in --seed) seed=$2 shift shift ;; --n_experts) n_experts=$2 shift shift ;; --vv) vv=$2 shift shift ;; esac done python -m to...
AdaMix/NLG/run_eval_e2e.sh/0
{ "file_path": "AdaMix/NLG/run_eval_e2e.sh", "repo_id": "AdaMix", "token_count": 605 }
22
# ------------------------------------------------------------------------------------------ # Copyright (c). All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -----------------------------------------------------------------------------------------...
AdaMix/NLG/src/format_converting_dart.py/0
{ "file_path": "AdaMix/NLG/src/format_converting_dart.py", "repo_id": "AdaMix", "token_count": 597 }
23
<!--- Copyright 2020 The HuggingFace 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 required by applicable law or ...
AdaMix/docs/README.md/0
{ "file_path": "AdaMix/docs/README.md", "repo_id": "AdaMix", "token_count": 3321 }
24
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7