This file contains hidden or 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 mlflow import MlflowClient | |
import mlflow | |
client = MlflowClient() | |
experiment_name = "my_experiment" | |
mlflow.set_experiment(experiment_name) | |
def get_experiment_id() -> str: |
This file contains hidden or 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
#!/bin/bash | |
special_content=$5 | |
prefix=$4 | |
for ((i=0;i<$1;i++)) | |
do | |
fname=$(pwd)/$prefix-$i.txt | |
dd if=/dev/urandom of=$fname bs=$2 count=$3 | |
echo $special_content >> $fname | |
done |
This file contains hidden or 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
const path = require('path'); | |
const fs = require('fs'); | |
const isImportPattern = /^\s*import/; | |
const isFromPackagePattern = /@domino\/(.+)'|@domino\/(.+)"/; | |
const isLernaPackageImport = /@domino\/(.*)/; | |
const isExportPattern = /^\s*export/; | |
const getExportNameMatcher = /^\s*export\s*{\s*default\s*as\s*(.*)\s*}\s*from\s*.+/; |
This file contains hidden or 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
/* | |
* implement a set like data structure with insert, remove, and GetRandomElement with equal probability per element | |
*/ | |
function Set(ints) { | |
this._ints = []; //this is going to be used in get random element | |
this._hashmap = {}; //map from int to index in ints | |
this._setInitialData(ints); | |
} |