The sknet project is a scikit-learn and NetworkX compatible framework for machine learning in complex networks. It provides learning algorithms for complex networks, as well as transforming methods to turn tabular data into complex networks.
It started in 2021 as a project from volunteers to help to improve the development of research on the interface between complex networks and machine learning. It main focus is to help researchers and students to develop solutions using machine learning on complex networks.
💻 Installation
The sknet installation is available via PiPy:
pip install scikit-net
🔆 Quickstart
The following code snippet shows how one can transform tabular data into a complex network and then use it to create a classifier:
from sklearn.model_selection import train_test_split
from sklean.metrics import accuracy_score
from sklearn.datasets import load_iris
from sknet.network_construction import KNNConstructor
from sknet.supervised import EaseOfAccessClassifier
X, y = load_iris(return_X_y = True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33)
# The constructor responsible for transforming the tabular data into a complex network
knn_c = KNNConstructor(k=5)
classifier = EaseOfAccessClassifier()
classifier.fit(X_train, y_train, constructor=knn_c)
y_pred = classifier.predict(X_test)
accuracy_score(y_test, y_pred)
📝 Documentation
We provide an extensive API documentation as well with some user guides. The documentation is available on https://tnanukem.github.io/scikit-net/
Citation
If you used the scikit-net on your research project, please cite us using the following publication:
@article{Toledo2021,
doi = {10.21105/joss.03864},
url = {https://doi.org/10.21105/joss.03864},
year = {2021},
publisher = {The Open Journal},
volume = {6},
number = {68},
pages = {3864},
author = {Tiago Toledo},
title = {sknet: A Python framework for Machine Learning in Complex Networks},
journal = {Journal of Open Source Software}
}
Metadata
Release files for scikit-net 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scikit-net-0.0.4.tar.gz | 23.7 kB | Without provenance | Details for scikit-net-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scikit_net-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for scikit_net-0.0.4-py3-none-any.whl |
Total release size: 55.9 kB
Release files / scikit-net-0.0.4.tar.gz
| Download URL | scikit-net-0.0.4.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
267f77f59918480d945133413dad4ab9b427f13a7aea4e3ccc758170cad2dc13
|
|
BLAKE2b-256 checksum How to use checksums |
67a4409481b906c0abebeddfa2f3bb4db38f2d5b06c95bd9e7104fbd605b998f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / scikit_net-0.0.4-py3-none-any.whl
| Download URL | scikit_net-0.0.4-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5aaf3a837a834e64cebe94f78356fc3009fe84711e9d17e429245831bb5dbd3d
|
|
BLAKE2b-256 checksum How to use checksums |
faf7a87d38760cc775cfb28288acd1e302a991487b461daa8b93fba5a6c7ed7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for scikit-net 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.