Skip to content

add new model ordinal_reg() for ordinal regression #1298

@corybrunson

Description

@corybrunson

This was discussed in two previous issues, #35 and #953. The new model is being added in this fork branch, and an extension with engines is underway here.

First see this article for guidance on adding a new model.

Checklist for adding a new model

Copied from this article:

  • Create the main modeling function (e.g. nearest_neighbors()). When choosing argument names, check for existing ones across other model types which could be reused, e.g., trees for the number of trees is used across different tree-based models like rand_forest() and boost_tree().

    • here
    • Model parameters currently include penalty, mixture, ordinal_link, and odds_link.
  • Register the model and a mode in the parsnip model “database” with parsnip::set_new_model() and parsnip::set_model_mode(). [example]

  • Create an update() method.

  • Add parameter objects for main parameters to dials, if needed. See How to create a tuning parameter function for more details.

  • Write unit tests for the basic modeling function (independent of the engines).

  • Add a pkgdown entry.

  • Add model description to the internal model_descs tibble.

  • Run purrr::map(parsnip:::extensions(), ~ library(.x, character.only = TRUE)).

  • Run parsnip:::update_model_info_file().

  • Make sure that no entries are removed from inst/models.tsv.

  • Add a documentation entry in NEWS.md.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions