Knowledge graph builder
Project description
knox-d
MI-graph (Machine learning graph)
machine learning experts, do things
Usage
run the following commands
pip install --extra-index-url https://repos.knox.cs.aau.dk knox-mi-graph
mi_graph input.json
You can try it out with our example, and put a -v for visualisation
mi_graph examples/grundfos_test.json
Run under development
at root level of the repository run:
python mi_graph file.json
Setup: virtualenv environment
Make sure pip is up-to-date:
python -m pip install --upgrade pip
Install virtualenv
:
python -m pip install virtualenv
Activate environment
To create an environment run:
python -m venv env
to create an environment with the name "env". Now to activate the environment run the activate script based on your OS in "env/Scripts".
On windows 10 you can run:
env/Scripts/Activate.ps1
in your powershell, to activate the environment.
If running scripts is denied - run the following command to remove the restriction. Stackoverflow
set-executionpolicy remotesigned
Install dependencies
To install dependencies run:
pip install -r .\requirements.txt
If you encounter problems see this.
Setup: conda environment
Install conda from their website. (We recommend the mini version / miniconda)
Initialize the environment with:
conda create --name knox-env python=3.8
activate knox-env
pip install -r requirements.txt
And you are good to go.
Test dependencies
For developers, you also need to install the test requirements:
pip install -r tests/requirements.txt
pylint
Before you make a pull request to master, you should run branch though pylint.
you can use pylint_runner
to run all folders in the solution, or with pylint like so
Run:
pip install pylint
And then
pylint folder/
Build module
You cannot be in a virtual environment, when building
python3 setup sdist bdist_wheel
python3 -m twine upload dist/*
TODO
- upload to knox repo instead of pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for knox_mi_graph-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192dbf186a202e1b03c793470bd4beca42d2fb3437fc5596da0bbabc66c0efe4 |
|
MD5 | 4ac1ca492aaffaed6ca646387e6f7e39 |
|
BLAKE2b-256 | b087372222eaaf45e9f96ef66874c9b19bab9a712f427dd55e79d523fa35655b |