This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import timedelta | |
from airflow import models | |
from airflow.contrib.operators import dataproc_operator | |
from airflow.operators.latest_only_operator import LatestOnlyOperator | |
from airflow.utils import trigger_rule | |
from chat_plugin import ChatNotifyOperator | |
from dataproc import hermes | |
from porch import settings as porch_settings, label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import pyarrow as pa | |
import pyarrow.parquet as pq | |
from fsspec.core import strip_protocol | |
from flytekitplugins.fsspec import FSSpecPersistence | |
from flytekitplugins.fsspec.pandas import get_storage_options | |
uri = "s3://open-compute-playground/arrow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
description: The Submarine REST API allows you to create, list, and get experiments. The | |
API is hosted under the /v1/jobs route on the Submarine server. For example, | |
to list experiments on a server hosted at http://localhost:8080, access | |
http://localhost:8080/api/v1/jobs/ | |
version: 1.0.0 | |
title: Submarine Experiment API | |
termsOfService: http://swagger.io/terms/ | |
contact: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
description: "The Submarine REST API allows you to create, list, and get experiments. The API is hosted under the /v1/jobs route on the Submarine server. For example, to list experiments on a server hosted at http://localhost:8080, access http://localhost:8080/api/v1/jobs/" | |
version: "1.0.0" | |
title: "Submarine Experiment API" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "Apache 2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
description: 'The Submarine REST API allows you to create, list, and get experiments. The API is hosted under the /v1/jobs route on the Submarine server. For example, to list experiments on a server hosted at http://localhost:8080, access http://localhost:8080/v1/jobs/status' | |
version: 1.0.0 | |
title: '' | |
termsOfService: 'http://swagger.io/terms/' | |
contact: | |
email: [email protected] | |
license: | |
name: Apache 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
description: "The Submarine REST API allows you to create, list, and get experiments. The API is hosted under the /v1/jobs route on the Submarine server. For example, to list experiments on a server hosted at http://localhost:8080, access http://localhost:8080/api/v1/jobs/status" | |
version: "1.0.0" | |
title: "Submarine Job API" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "Apache 2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: "kubeflow.org/v1" | |
kind: "TFJob" | |
metadata: | |
name: "mnist" | |
namespace: submarine | |
spec: | |
cleanPodPolicy: None | |
initContainers: | |
- name: init-mydb | |
image: busybox:1.28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define rep(i, x, y) for (__typeof(x) i = x; i <= y; i++) | |
#define repi(i, x, y) for (__typeof(x) i = x; i >= y; i--) | |
#define trav(a, x) for(auto& a : x) | |
#define all(x) x.begin(), x.end() | |
#define sz(x) (int)(x).size() | |
#define fill(x, y) memset(x, y, sizeof(y)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tensorflow 2 supported | |
# using MultiWorkerMirroredStrategy | |
# Need to install tf-nightly | |
# https://www.tensorflow.org/tutorials/distribute/multi_worker_with_keras | |
from __future__ import absolute_import, division, print_function, unicode_literals | |
import numpy as np | |
import tensorflow_datasets as tfds | |
import tensorflow as tf | |
tfds.disable_progress_bar() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileReader; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.*; | |
import java.util.StringTokenizer; |
NewerOlder