* demo/test: only test PR to main branch.
This commit is contained in:
Justin D. Harris 2021-04-22 18:02:03 -04:00 коммит произвёл GitHub
Родитель 676691d21b
Коммит 0b73a5c436
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 20 добавлений и 16 удалений

3
.github/workflows/demo-test.yml поставляемый
Просмотреть файл

@ -2,11 +2,12 @@ name: "Demo: Test"
on:
push:
branches: [ master, main ]
branches: [ main ]
paths:
- 'demo/**'
- '.github/workflows/demo-**'
pull_request:
branches: [ main ]
paths:
- 'demo/**'
- '.github/workflows/demo-**'

4
.github/workflows/simulation-test.yml поставляемый
Просмотреть файл

@ -2,12 +2,12 @@ name: "Simulation: Test"
on:
push:
branches: [ master, main ]
branches: [ main ]
paths:
- 'simulation/**'
- '.github/workflows/simulation-**'
pull_request:
branches: [ master, main ]
branches: [ main ]
paths:
- 'simulation/**'
- '.github/workflows/simulation-**'

Просмотреть файл

@ -6,7 +6,7 @@
<!-- Put horizontally since build status badges are normally horizontal. -->
| [Demo][demo-folder] | [Simulation][simulation-folder] | Security |
|:-:|:-:|:-:|
| [![Demo: Test](https://github.com/microsoft/0xDeCA10B/actions/workflows/demo-test.yml/badge.svg?branch=master)](https://github.com/microsoft/0xDeCA10B/actions/workflows/demo-test.yml) | [![Simulation: Test](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-test.yml/badge.svg?branch=master)](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-test.yml) | [![Build Status](https://dev.azure.com/maluuba/0xDeCA10B/_apis/build/status/Security%20Checks?branchName=master)](https://dev.azure.com/maluuba/0xDeCA10B/_build/latest?definitionId=118&branchName=master) |
| [![Demo: Test](https://github.com/microsoft/0xDeCA10B/actions/workflows/demo-test.yml/badge.svg?branch=main)](https://github.com/microsoft/0xDeCA10B/actions/workflows/demo-test.yml) | [![Simulation: Test](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-test.yml/badge.svg?branch=main)](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-test.yml) | [![Build Status](https://dev.azure.com/maluuba/0xDeCA10B/_apis/build/status/Security%20Checks?branchName=main)](https://dev.azure.com/maluuba/0xDeCA10B/_build/latest?definitionId=118&branchName=main) |
**Sharing Updatable Models (SUM) on Blockchain** is a framework to host and train publicly available machine learning models.
Ideally, using a model to get a prediction is free.

Просмотреть файл

@ -2,8 +2,8 @@ FROM node:10.17
LABEL maintainer="Justin D. Harris (Microsoft)"
LABEL org.label-schema.vendor="Microsoft"
LABEL org.label-schema.url="https://github.com/microsoft/0xDeCA10B/tree/master/demo"
LABEL org.label-schema.vcs-url="https://github.com/microsoft/0xDeCA10B/tree/master/demo"
LABEL org.label-schema.url="https://github.com/microsoft/0xDeCA10B/tree/main/demo"
LABEL org.label-schema.vcs-url="https://github.com/microsoft/0xDeCA10B/tree/main/demo"
WORKDIR /root/workspace/demo

Просмотреть файл

@ -1,5 +1,7 @@
# Decentralized & Collaborative AI on Blockchain Demo
[![Build Status](https://dev.azure.com/maluuba/0xDeCA10B/_apis/build/status/demo-CI?branchName=master)](https://dev.azure.com/maluuba/0xDeCA10B/_build/latest?definitionId=116&branchName=master)
# Sharing Updatable Models (SUM) on Blockchain Demo
(formerly Decentralized & Collaborative AI on Blockchain Demo)
[![Demo: Test](https://github.com/microsoft/0xDeCA10B/actions/workflows/demo-test.yml/badge.svg?branch=main)](https://github.com/microsoft/0xDeCA10B/actions/workflows/demo-test.yml)
A dashboard and examples for deploying updatable AI models to Ethereum. A video demo is available There is a video example showing how to deploy <a href="https://aka.ms/0xDeCA10B-demo" target="_blank">here</a>.

Просмотреть файл

@ -12,8 +12,8 @@ FROM appsvc/node:10-lts
LABEL maintainer="Justin D. Harris (Microsoft)"
LABEL org.label-schema.vendor="Microsoft"
LABEL org.label-schema.url="https://github.com/microsoft/0xDeCA10B/tree/master/demo"
LABEL org.label-schema.vcs-url="https://github.com/microsoft/0xDeCA10B/tree/master/demo"
LABEL org.label-schema.url="https://github.com/microsoft/0xDeCA10B/tree/main/demo"
LABEL org.label-schema.vcs-url="https://github.com/microsoft/0xDeCA10B/tree/main/demo"
# Already set:
# WORKDIR /home/site/wwwroot

Просмотреть файл

@ -2,14 +2,14 @@ FROM continuumio/miniconda3:4.6.14
LABEL maintainer="Justin Harris (justin.harris@microsoft.com)"
LABEL org.label-schema.vendor="Microsoft"
LABEL org.label-schema.url="https://github.com/microsoft/0xDeCA10B/tree/master/simulation"
LABEL org.label-schema.vcs-url="https://github.com/microsoft/0xDeCA10B/tree/master/simulation"
LABEL org.label-schema.url="https://github.com/microsoft/0xDeCA10B/tree/main/simulation"
LABEL org.label-schema.vcs-url="https://github.com/microsoft/0xDeCA10B/tree/main/simulation"
EXPOSE 5006
ENV LC_ALL C.UTF-8
RUN conda create --channel conda-forge --name decai-simulation --yes python=3.7 bokeh mkl mkl-service numpy pandas phantomjs scikit-learn scipy tensorflow
RUN conda create --channel conda-forge --name decai-simulation --yes python=3.9 bokeh mkl mkl-service numpy pandas phantomjs scikit-learn scipy tensorflow
RUN conda init bash
RUN echo "conda activate decai-simulation" >> ~/.bashrc

Просмотреть файл

@ -1,6 +1,7 @@
# Decentralized & Collaborative AI Simulation
# Sharing Updatable Models (SUM) on Blockchain Simulation
(formerly Decentralized & Collaborative AI on Blockchain Simulation)
[![Build Status](https://dev.azure.com/maluuba/0xDeCA10B/_apis/build/status/simulation-CI?branchName=master)](https://dev.azure.com/maluuba/0xDeCA10B/_build/latest?definitionId=117&branchName=master)
[![Simulation: Test](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-test.yml/badge.svg?branch=main)](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-test.yml)
Tools to run simulations for AI models in smart contracts.
@ -30,7 +31,7 @@ Despite the malicious efforts, the accuracy can still be maintained and the hone
This section explains how to set up locally, alternatively, you can skip ahead and use a Docker image.
Run:
```bash
conda create --channel conda-forge --name decai-simulation 'python>=3.7' bokeh mkl mkl-service numpy pandas phantomjs scikit-learn scipy tensorflow
conda create --channel conda-forge --name decai-simulation 'python>=3.9' bokeh mkl mkl-service numpy pandas phantomjs scikit-learn scipy tensorflow
conda activate decai-simulation
pip install -e .
```