Download the PHP package ifaqih/ifnaivebayes without Composer

On this page you can find all versions of the php package ifaqih/ifnaivebayes. 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 ifnaivebayes

Naive Bayes Classifier

Naive Bayes classifier (NBC) is a machine learning method that utilizes probability and statistical calculations proposed by British scientist Thomas Bayes, which predicts future probabilities based on past experience.

PHP Version: 8.0 or above |-

Installation

With Composer:

Use The Library

Set Data Method

Method to set the data to be processed.

Prototype:

info:

Set Training Data Method

A method for organizing past classification data that will be used as the basis for future classifications.

Prototype 1:

Prototype 2:

Prototype 3:

Set training data based on number of attributes and number of labels. If using this prototype does not require data input (in the set_data() method) and will skip the attribute calculation stage, because it is assumed to have performed attribute calculations manually.

info:

Process Method

The method that will perform the classification calculation.

info: do not include parameters if already set data using 'set' method, otherwise this parameter data will overwrite data which have been set using 'set' method

Get Result Method

Method to get the result of the classification process.

Get Result Point Method

Method to get the points result from the classification process.

info: parameter in this method is used to get the calculation result points which refers to the requested label and will be returned in float data type, if parameter is not filled or contains null it will return all calculation result points in object data type

Clear Method

This method will delete all data stored statically on the class.

Test Results

Number of training data = 100000


All versions of ifnaivebayes with dependencies

PHP Build Version
Package Version
Requires php Version >= 8.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 ifaqih/ifnaivebayes contains the following files

Loading the files please wait ....