Timefeatures add-on for Orange 3 data mining software.
Project description
Orange3 TimeFeatures
TimeFeatures is an add-on for Orange 3 data mining software for generating synthetic data using datasets with time series, generating graphs of relationships between the generated variables, and includes widgets to save and load data and configuration tables from a database.
Features
- 🕐 7 time-window functions —
shift,sum,mean,min,max,count,sdwith full chunk-boundary correctness - 🔗 Chained descriptors — derived variables can reference each other; topological sort resolves the evaluation order automatically
- 🛡️ Secure evaluation — expressions run in a restricted
evalsandbox (__builtins__replaced, curated whitelist only) - 🗄️ PostgreSQL & MySQL — persist and reload datasets via SQLAlchemy with dialect-agnostic SQL generation
- 📊 Directed weighted dependency graphs — edge weights reflect temporal window size; visualise in Network Explorer
- ⚡ Bulk upload performance — pandas
DataFrame.to_sqlwith chunked multi-row INSERTs - 💾 Workflow persistence — variable definitions survive save/reload without clicking Send first
Widgets
| Widget | Description |
|---|---|
| Time Features Constructor | Defines new variables from existing ones using Python-style expressions and time-window functions. Supports chained descriptors with automatic topological sorting. |
| Variable Dependency Graph | Builds a directed, weighted dependency graph from the variable definitions. Edge weights summarise how far back or forward in time each variable looks. |
| Save to DB | Persists the resulting dataset to a SQL database (PostgreSQL or MySQL), with full SQL-injection defences, three write modes (create / overwrite / append) and an optional completion email. |
| Load from DB | Lists datasets previously stored by Save to DB and pulls the chosen one back into Orange, optionally marking the class column directly so no Select Columns widget is needed. |
Installation
Orange add-on installer
Install from Orange add-on installer through Options -> Add-ons.
Using pip
To install the add-on with pip use
pip install TimeFeatures
To install the add-on from source in editable mode, run
pip install -e .
Anaconda
If using Anaconda Python distribution, simply run
pip install TimeFeatures
Required Dependencies:
- numpy>=1.22.4
- AnyQt>=0.2.0
- PyQt5>=5.15.6
- PyQtWebEngine>=5.15.6
- scipy>=1.7.3
- SQLAlchemy>=1.4.0
- psycopg2-binary>=2.9.9
- PyMySQL>=1.0.0
- Orange3-Network>=1.8.0
Usage
After the installation, the widgets from this add-on are registered with Orange. To run Orange from the terminal, use
orange-canvas
or
python3 -m Orange.canvas
New widgets are in the toolbox bar under Time-Features section.
Documentation
The add-on includes Sphinx documentation for each widget. Orange resolves the local HTML pages through its internal Help panel, not through an internet URL. To rebuild the documentation locally, run
pip install -e ".[docs]"
python -m sphinx -b html docs docs/build/html
The bundled in-app help is pre-built under timefeatures/help_html/. To
regenerate it (e.g. after editing the .rst files), run
python -m sphinx -b html docs timefeatures/help_html
Use the widget help action in Orange to open the corresponding page inside the Orange Help window.
Workflow Example
This is an example of how you can use this add-on.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timefeatures-2.2.0.tar.gz.
File metadata
- Download URL: timefeatures-2.2.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f1d051306ba32cd273e3b573801e6cce1c6b3c5a213a0d30cbe6b5b6db652cc
|
|
| MD5 |
1497a8d4b484ba087e0a50bab6d15b7b
|
|
| BLAKE2b-256 |
86ba4a52ad2d5ffb6786a9b6d7544546b2956d4b0c58ce631f4cb5cd069fa17b
|
File details
Details for the file timefeatures-2.2.0-py3-none-any.whl.
File metadata
- Download URL: timefeatures-2.2.0-py3-none-any.whl
- Upload date:
- Size: 532.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
630e771fa2b2e096698783eef053f356ec4e912adbe1fcd80631bb1900710898
|
|
| MD5 |
11454e7942c4720af9dcca289fbd3c18
|
|
| BLAKE2b-256 |
1379f6b1a83a1d28504dc7a98015aa9c8b4b2ee74ec68945fdb203cad8996997
|