Skip to content

an error coming across the R script #2

@wanggui1201

Description

@wanggui1201

for (i in 1:27){

  • mycontrols = ctree_control(mincriterion = tunegrid[i,1],
  •                              minbucket = tunegrid[i,2], 
    
  •   		 maxsurrogate = tunegrid[1,3])      #is there any problem with [1,3] ?  or [i, 3]
    
  • tree.list[[i]] = ctree(formula, data = train, control = mycontrols)
  • }
    Error in .y2infl(mfyx, response = d$variables$y, ytrafo = ytrafo) :
    unknown response class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions