Skip to content

Instantly share code, notes, and snippets.

View mhash1m's full-sized avatar
🎯
nailing it

Hashim mhash1m

🎯
nailing it
View GitHub Profile
Checking whether there is an H2O instance running at http://localhost:54321 ..... not found.
Attempting to start a local H2O server...
Java Version: openjdk version "1.8.0_342"; OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~20.04-b07); OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
Starting server from /home/hash1m/miniconda3/envs/zen_ml/lib/python3.7/site-packages/h2o/backend/bin/h2o.jar
Ice root: /tmp/tmpjslvnzy5
JVM stdout: /tmp/tmpjslvnzy5/h2o_hash1m_started_from_python.out
JVM stderr: /tmp/tmpjslvnzy5/h2o_hash1m_started_from_python.err
Server is running at http://127.0.0.1:54321
Connecting to H2O server at http://127.0.0.1:54321 ... successful.
-------------------------- -----------------------------
Computer Information:
Manufacturer: HP
Model: 87AD
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
CPU Family: 0x6
@mhash1m
mhash1m / GSoC21.md
Created August 22, 2021 12:49
Google Summer of Code Final Work Report
@mhash1m
mhash1m / gist:89078859969b6a1268bd189f63c9a404
Created July 12, 2020 18:30
logs for running `python3 setup.py test -s model.daal4py.tests.test_lr`
(base) hash1m@hash1m-ThinkPad-W520:~/dffml$ python3 setup.py test -s model.daal4py.tests.test_lr
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing dffml.egg-info/PKG-INFO
writing dependency_links to dffml.egg-info/dependency_links.txt
writing entry points to dffml.egg-info/entry_points.txt
writing requirements to dffml.egg-info/requires.txt
writing top-level names to dffml.egg-info/top_level.txt
reading manifest file 'dffml.egg-info/SOURCES.txt'
@mhash1m
mhash1m / gist:ea2e1301c615266a51b2ff25dff8d5a6
Last active July 11, 2020 14:10
`dffml service dev install -user` log
Running setup.py develop for dffml-model-transformers
Running setup.py install for vowpalwabbit ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o0wkc_1q/vowpalwabbit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o0wkc_1q/vowpalwabbit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1ckqz98g/install-record.txt --single-version-externally-managed --prefix /usr/src/dffml/.venv/.local --compile --install-headers /usr/src/dffml/.venv/.local/include/python3.7m/vowpalwabbit
cwd: /tmp/pip-install-o0wkc_1q/vowpalwabbit/
Complete output (30 lines):
running install
running build
running build_py
creating build
sudo docker run --rm -ti -u $(id -u):$(id -g) -e LOGGING=debug -e USER=$USER -v $HOME/.cache/pip:/home/$USER/.cache/pip -w /usr/src/dffml -v $PWD:/usr/src/dffml -w /usr/src/dffml --entrypoint .ci/docker-entrypoint.sh python:3.7 .
[sudo] password for hashim:
+ '[' x '!=' x ']'
+ PYTHON=python3
+ '[' xhashim == x ']'
+ echo '#!/usr/bin/env bash'
+ chmod 755 /tmp/cmd.sh
++ mktemp -d
+ export VIRTUAL_ENV_DIR=/tmp/tmp.loEROIs6F3
+ VIRTUAL_ENV_DIR=/tmp/tmp.loEROIs6F3
@mhash1m
mhash1m / CI tests log
Created May 28, 2020 13:42
Log after clearing cache and running CI tests
hashim@hashim-ThinkPad-W520:~/dffml$ sudo docker run --rm -ti -u $(id -u):$(id -g) -e LOGGING=debug -e USER=$USER -v $HOME/.cache/pip:/home/$USER/.cache/pip -w /usr/src/dffml -v $PWD:/usr/src/dffml -w /usr/src/dffml --entrypoint .ci/docker-entrypoint.sh python:3.7 .
+ '[' x '!=' x ']'
+ PYTHON=python3
+ '[' xhashim == x ']'
+ echo '#!/usr/bin/env bash'
+ chmod 755 /tmp/cmd.sh
++ mktemp -d
+ export VIRTUAL_ENV_DIR=/tmp/tmp.AwnbGcW8bL
+ VIRTUAL_ENV_DIR=/tmp/tmp.AwnbGcW8bL
+ python3 -m venv /tmp/tmp.AwnbGcW8bL
@mhash1m
mhash1m / db_query
Last active April 14, 2020 17:39
Code Example for db query in `operation/db`
examplefile, database_name = tempfile.mkstemp(prefix="example", suffix=".db")
os.close(examplefile)
sdb = SqliteDatabase(SqliteDatabaseConfig(filename=database_name))
dataflow = DataFlow(
operations={
"db_query_create": db_query_create_table.op,
"db_query_insert": db_query_insert.op,
"db_query_update": db_query_update.op,
"db_query_lookup": db_query_lookup.op,
from dffml import Features, DefFeature
from dffml.noasync import train, accuracy, predict
from dffml_model_scikit import LinearRegressionModel
def highLevelApi_example(feature_def, pred_feature_def, train_data, accuracy_data, prediction_data):
"""
.. doctest::
hashim@hashim-ThinkPad-W520:~/dffml$ ./scripts/doctest.sh
Running Sphinx v2.4.3
making output directory... done
WARNING: html_static_path entry '_static' does not exist
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [doctest]: targets for 57 source files that are out of date
updating environment: [new config] 57 added, 0 changed, 0 removed
/home/hashim/.local/lib/python3.7/site-packages/recommonmark/parser.py:75: UserWarning: Container node skipped: type=document
warn("Container node skipped: type={0}".format(mdnode.t))