MindsDB - 简化神经网络使用的框架

网友投稿 1124 2022-10-24

MindsDB - 简化神经网络使用的框架

MindsDB - 简化神经网络使用的框架

Try it out

Installing MindsDBLearning from ExamplesMindsDB Explainability GUIFrequently Asked QuestionsProvide Feedback to Improve MindsDB

Installation

Desktop: You can use MindsDB on your own computer in under a minute, if you already have a python environment setup, just run the following command:

pip install mindsdb --user

Note: Python 64 bit version is required. Depending on your environment, you might have to use pip3 instead of pip in the above command.*

If for some reason this fail, don't worry, simply follow the complete installation instructions which will lead you through a more thorough procedure which should fix most issues.

Docker: If you would like to run it all in a container simply:

sh -c "$(curl -sSL https://raw.githubusercontent.com/mindsdb/mindsdb/master/distributions/docker/build-docker.sh)"

Usage

Once you have MindsDB installed, you can use it as follows:

Import MindsDB:

from mindsdb import Predictor

One line of code to train a model:

# tell mindsDB what we want to learn and from what dataPredictor(name='home_rentals_price').learn( to_predict='rental_price', # the column we want to learn to predict given all the data in the file from_data="https://s3.eu-west-2.amazonaws.com/mindsdb-example-data/home_rentals.csv" # the path to the file where we can learn from, (note: can be url))

One line of code to use the model:

# use the model to make predictionsresult = Predictor(name='home_rentals_price').predict(when={'number_of_rooms': 2, 'initial_price': 2000, 'number_of_bathrooms':1, 'sqft': 1190})# you can now print the resultsprint('The predicted price is between ${price} with {conf} confidence'.format(price=result[0].explanation['rental_price']['confidence_interval'], conf=result[0].explanation['rental_price']['confidence']))

Visit the documentation to learn more

Video Tutorial

Please click on the image below to load the tutorial:

(Note: Please manually set it to 720p or greater to have the text appear clearly)

MindsDB Graphical User Interface

You can also work with mindsdb via its graphical user interface (download here). Please click on the image below to load the tutorial:

MindsDB Lightwood: Machine Learning Lego Blocks

Under the hood of mindsdb there is lightwood, a Pytorch based framework that breaks down machine learning problems into smaller blocks that can be glued together seamlessly. More info about MindsDB lightwood's on GITHUB.

Contributing

In order to make changes to mindsdb, the ideal approach is to fork the repository than clone the fork locally PYTHONPATH.

For example: export PYTHONPATH=$PYTHONPATH:/home/my_username/mindsdb.

Too test your changes you can run unit tests (fast) and CI tests (slightly longer) locally.

To run the unit tests:

Install pytest: pip install -r requirements_test.txtRun: pytest

To run the CI tests: cd tests/ci_tests && python3 full_test.py

Once you have specific changes you want to merge into master, feel free to make a PR.

Report Issues

Please help us by reporting any issues you may have while using MindsDB.

License

MindsDB License

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:#yyds干货盘点# leetcode算法题:最长回文串
下一篇:JDK8-HashMap底层源码解析
相关文章

 发表评论

暂时没有评论,来抢沙发吧~