nReduce

PreprocessResource.nReduce(request, sub_analysis_id, **kwargs)

Prior mandatory steps 1) Upload dataset 2) Create analysis 3) Create sub analysis 4) DataSharp

This function returns the important and unimportant attributes from a given dataframe. It returns the normalized scores for each attribute and tags each attribute if it is important or unimportant. For more information, please read the dataSharp section.

Arguments

sub_analysis_id Give sub analysis id

Possible errors

Error message
Invalid sub analysis id

GET Request Example

curl -u username:password {url_prefix}/nreduce/{sub_analysis_id}/

Response Example

{
    "error": false,
    "error_msg": "",
    "result": {
        "Important": [
            "age",
            "balance",
            "campaign",
            "day",
            "duration",
            "education",
            "job",
            "month",
            "pdays",
            "poutcome",
            "previous"
        ],
        "Not important": [
            "contact",
            "default",
            "housing",
            "loan",
            "marital"
        ],
    }
}