A ridiculously simple search engine factory
Project description
grub
A ridiculously simple search engine
Example: Search code
from grub import SearchStore
import sklearn # instead of talking any file, let's search the files of sklearn itself!
path_format = os.path.dirname(sklearn.__file__) + '{}.py'
search = SearchStore(path_format)
Let's search for ANN. That stands for Artificial Neural Networks. Did you know? Well search figures it out, pretty early, that I was talking about neural networks.
search('ANN')
array(['sklearn/tree/_export.py', 'sklearn/linear_model/_least_angle.py',
'sklearn/feature_selection/_base.py',
'sklearn/feature_selection/tests/test_variance_threshold.py',
'sklearn/neural_network/tests/test_stochastic_optimizers.py',
'sklearn/neural_network/__init__.py',
'sklearn/neural_network/_stochastic_optimizers.py',
'sklearn/neural_network/_multilayer_perceptron.py',
'sklearn/neural_network/rbm.py',
'sklearn/neural_network/tests/test_rbm.py'], dtype='<U75')
Let's search for something more complicated. Like a sentence. The results show promise promises: It's about calibration, but related are robustness, feature selection and validation...
search('how to calibrate the estimates of my classifier')
array(['sklearn/covariance/_robust_covariance.py',
'sklearn/svm/_classes.py',
'sklearn/covariance/_elliptic_envelope.py',
'sklearn/neighbors/_lof.py', 'sklearn/ensemble/_iforest.py',
'sklearn/feature_selection/_rfe.py', 'sklearn/calibration.py',
'sklearn/model_selection/_validation.py',
'sklearn/ensemble/_forest.py', 'sklearn/ensemble/_gb.py'],
dtype='<U75')
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 grub-0.1.4.tar.gz.
File metadata
- Download URL: grub-0.1.4.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04efb71990b624d78f13b6c2e301f1c28a8466cfb8ab261a4cfc7eebf0936680
|
|
| MD5 |
42895ddfd9814d112c9dc3d3ac14f563
|
|
| BLAKE2b-256 |
71176fa2f4786139cf80ece98770ac06a51595cd8b436cc522ac163c2465d4f7
|
File details
Details for the file grub-0.1.4-py3-none-any.whl.
File metadata
- Download URL: grub-0.1.4-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29460f4dee1595dcec5e2c01e4bc12d3d7ca3a44bc1bca24f82648bdcb3a4cba
|
|
| MD5 |
9b7e548cc810a99703e080e70c2a7be0
|
|
| BLAKE2b-256 |
ebfc138805a980fdf0612ef515e00b8ab409a123d1b318bee5070083bd25ae3c
|