Download the PHP package torian257x/ai-php-rubix-wrap without Composer

On this page you can find all versions of the php package torian257x/ai-php-rubix-wrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-php-rubix-wrap

AI PHP Rubix Wrap

A wrapper for Rubix ML to make it very approachable

Example:

Where column_with_label is the key of the multi dimensional array $data that contains the value that you want to predict.

Let's make a simple example:

See full example of above code here

Reports / Errors / Accuracy

Mean absolute error is basically the actual error you can expect in average. So in average if trying to predict an apartment given the space, you'd be off, in average, by 68.88$

r squared on the other hand gives more of a feeling how good the algorithm is in %. A high r squared means it works well. For categorical features like cat or dog a different report is returned

Estimators / Machine Learning Algorithm

RubixService::train() will use a default estimator (machine learning algorithm) depending on the data. If you want to choose a different estimator I recommend reading here

rubix ml choosing an estimator

Notice: Neural network is called Multilayer Perceptron in Rubix. Linear regression is called Ridge.

Per default it uses K-d Neighbors or K-d Neighbors Regressor

RubixService::train() takes as well transformers

In detail RubixService:train() does

  1. shuffle of $data
  2. train against 70% of $data
  3. test against 30% of $data

You can change that behaviour by using the argument train_part_size e.g. if you want to train on 80%, and test on 20% you would do RubixService::train(... train_part_size: 0.8).


All versions of ai-php-rubix-wrap with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
rubix/ml Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package torian257x/ai-php-rubix-wrap contains the following files

Loading the files please wait ....