Comments (5)
It's a matter of implementing __str__
method for the result.
The result may contain the following fields: minimum
, maximum
, mean
, standardDeviation
, variance
, variation
, sum
, sumSquared
, sumSquaresCentered
, secondOrderRawMoment
.
I suppose the default 'smart' printing would display min, max, mean and std if available, kind of like summary
function does in R.
It makes sense to arrange the data into a table. Perhaps reuse pandas for printing?
How about a code that maps low_order_result
to a pandas's dataframe?
from scikit-learn-intelex.
I would like to think about the broader picture. The same 'issue' exists for all results/models.
I suggest adding a __str__
method to all results and models
- printing attribute names and value for standard/trivial types (integer, str, float etc)
- printing attribute name and a summary for non-trivial, non-daal types
- 'array' (or similar), dtype and shape for numpy arrays
- 'dict' (or alike) and size
- as far as I can tell there are no other non-trivial, non-daal types used
- printing attribute name and daal type for daal types (like models)
Attributes which are not expanded (complex and daal types) can be expanded by explicitly printing them.
A conversion to a pandas data-frame seems applicable only in very special cases, like low order moments. A conversion to a dict looks more generic. pandas allows creating DFs from dicts.
from scikit-learn-intelex.
For algorithms we could print the parameters. This is more involved and probably less important.
from scikit-learn-intelex.
Yes, I'll second @fschlimb 's findings. It is mostly about having str methods when looking at a summary, and accessors to the values in the right type when needing a specific one (mean, variance as examples).
from scikit-learn-intelex.
done: generic print capability added for results and model through #48
from scikit-learn-intelex.
Related Issues (20)
- PCA on gpu hangs HOT 9
- Cannot install in `Python 3.12` due to `daal4py` not being `py3.12`-ready. HOT 1
- pypy3 support for daal4py/sklearnex HOT 2
- RadiusNeighborsClassifier Support
- No module named 'daal4py._oneapi' HOT 1
- daal4py release notes HOT 1
- Feature Request - usage of Modin with GPU acceleration HOT 1
- SVR not working with intelex path HOT 11
- patch_sklearn() is not working but command line python3 -m sklearnex <file.py> is working HOT 5
- Crash and Cannot load onedal_thread.2.dll HOT 5
- Unable to run patch_sklearn() HOT 1
- INFO HOT 3
- model_selection.learning_curve breaks on some datasets HOT 1
- Logistic regression running with n_jobs=-1 HOT 12
- n_iters_ in SVR is always saved as 10,000 HOT 3
- Patching not implemented for GradientBoost Algorithms HOT 1
- DPC backend error on Windows HOT 1
- How to build scikit-learn-intelex from source HOT 1
- Memory leak DBSCAN HOT 2
- Different results from xgboost when using daal4py converted model HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-learn-intelex.