This is a Docker compose definition of a Hadoop + Spark + Livy cluster with one node only. You can use it for development or testing purposes.
Example usage:
docker compose build
docker compose up -d
docker exec -it /bin/bash
import argparse | |
import random | |
from collections import defaultdict | |
import numpy as np | |
from tqdm import tqdm | |
BOARD_SIZE = 3 |
from dataclasses import dataclass | |
import numpy as np | |
vocab = [None, 'a', 'b', 'c'] | |
null_idx = 0 | |
V = len(vocab) | |
@dataclass | |
class LSTMWeights: | |
xi: list[list[float]] # (V-1, V) |
import os | |
import argparse | |
import json | |
import re | |
import unicodedata | |
invalid_bytes_re = re.compile(r'[\x00-\x1F]+') | |
sline_re = re.compile(r'\[sline\].*?\[/sline\]') | |
color_tags = ['[f-blue]','[/f-blue]', |
import argparse | |
import chess | |
import chess.engine | |
import chess.pgn | |
def main(stockfish_path, output_path): | |
engine = chess.engine.SimpleEngine.popen_uci(stockfish_path) |
""" | |
Since Model.fit doesn't support class_weight when using multiple outputs, | |
this custom loss subclass may be useful. | |
Relevant issues: | |
https://github.com/keras-team/keras/issues/11735 | |
https://github.com/tensorflow/tensorflow/issues/40457 | |
https://github.com/tensorflow/tensorflow/issues/41448 | |
""" |
div>*:not(code) { | |
/* using the default discord theme's fonts */ | |
font-family: | |
Whitney, | |
'Helvetica Neue', | |
Helvetica, | |
Arial, | |
'Meiryo', /* you can change this to whatever japanese font you prefer */ | |
sans-serif !important; | |
} |
file_export_version=3.0 | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.keyword.enabled=true | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.link.enabled=true | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.tag.enabled=true | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionForeground.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionBackground.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Background.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Foreground.SystemDefault=false | |
/instance/org.epic.perleditor/AbstractTextEditor.Color.Background.SystemDefault=false | |
/instance/org.epic.perleditor/AbstractTextEditor.Color.Foreground.SystemDefault=false |
using System; | |
using System.Collections.Generic; | |
namespace BinarySearch | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<int> list = new List<int>() { 5, 8, 900, 1, 22, 52, 567, 666, 123, 256, 765, 0, 500 }; // example list |