Skip to main content

Tree-Classifier for Linear Regression (TCLR) is a novel tree model to capture the functional relationships between features and a target based on correlation.

Project description

# TCLR package TCLR, Version 1, October, 2021.

Tree-Classifier for Linear Regression (TCLR) is a novel Machine learning model to capture the functional relationships between features and a target based on correlation.

Reference paper : Cao B, Yang S, Sun A, Dong Z, Zhang TY. Domain knowledge-guided interpretive machine learning - formula discovery for the oxidation behaviour of ferritic-martensitic steels in supercritical water. J Mater Inf 2022.

Doi : http://dx.doi.org/10.20517/jmi.2022.04

Written using Python, which is suitable for operating systems, e.g., Windows/Linux/MAC OS etc.

## Installing

pip install TCLR

## Updating

pip install –upgrade TCLR

## Running

` from TCLR import TCLRalgorithm as model dataSet = "testdata.csv" # dataset name correlation = 'PearsonR(+)' minsize, threshold, mininc = 3, 0.9, 0.01 model.start(dataSet, correlation, minsize, threshold, mininc, gplearn = True) `

output: + classification structure tree in pdf format(Result of TCLR.pdf) + a folder called ‘Segmented’ for saving the subdataset of each leaf (passed test)

note:

the complete execution template can be downloaded at the Source Code folder

graphviz (recommended installation) package is needed for generating the graphical results, which can be downloaded from the official website http://www.graphviz.org/. see user guide.

## Update log TCLR V1.1 April, 2022. debug and print out the slopes when Pearson is used

TCLR V1.2 May, 2022. Save the dataset of each leaf

TCLR V1.3 Jun, 2022. Para: minsize - Minimum unique values for linear features of data on each leaf (Minimum number of data on each leaf before V1.3)

TCLR V1.4 Jun, 2022. Integrated symbolic regression algorithm of gplearn package. Derive an analytical formula between features and solpes by symbolic regression

## About Maintained by Bin Cao. Please feel free to open issues in the Github or contact Bin Cao (bcao@shu.edu.cn) in case of any problems/comments/suggestions in using the code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TCLR-1.4.3.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TCLR-1.4.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file TCLR-1.4.3.tar.gz.

File metadata

  • Download URL: TCLR-1.4.3.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for TCLR-1.4.3.tar.gz
Algorithm Hash digest
SHA256 a9e7b9465f63714ffb5c2a8f8d46b23b77e466087f3b3f0f1a8ae07be9c6c69c
MD5 9a77ed2a5ac659e34c136719f8c7e80a
BLAKE2b-256 1e0089154ff51f61154ba3c408bbb5e04097636bd8585f75d59f84dfa2704611

See more details on using hashes here.

File details

Details for the file TCLR-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: TCLR-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for TCLR-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fce26894e88754299990090313e652f474c570e5a687f96d39c825b69e367b78
MD5 ed640b9badaeeb83169967061d1c5498
BLAKE2b-256 c77f46ae547d9a502b722955cf1ca9b5bb109a2441c72ea8b51b5b5cb81d1fb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page