Add support for LightGBM importance_type hyperparameter

Open Beginner friendly
#1,170 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@divya234-hue is already working on this.

Since Nov 2, 2026.

  • #1177 by @divya234-hue — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by reading the existing LightGBM hyperparameter configuration and model construction in the openstef-models package, then check its related tests and documentation. Add importance_type through the existing configuration mechanism and pass it to the model during training; done means users can configure the parameter and the tests and docs reflect it.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem?

Most LightGBM hyperparameters are already configurable in OpenSTEF. However, the importance_type parameter is currently not exposed.

This parameter has proven valuable for feature importance analysis and model interpretation. Without it, users cannot fully configure the underlying LightGBM model through OpenSTEF.

Describe the solution you'd like

Expose the LightGBM importance_type parameter as a configurable hyperparameter in OpenSTEF and pass it to the underlying LightGBM model during training.

This would allow users to choose the desired feature importance calculation method without modifying OpenSTEF source code.

Describe alternatives you've considered

The only current workaround is to modify the OpenSTEF codebase locally to set the parameter directly when constructing the LightGBM model. Given that importance_type is a native LightGBM parameter, it would be preferable to expose it through the existing configuration mechanism.

Affected package(s)

  • openstef-core
  • openstef-models
  • openstef-beam
  • openstef-foundation-models
  • openstef-meta
  • examples / deployment
  • docs
  • not sure

Would this require breaking changes to the public API?

  • No
  • Yes
  • Not sure

Additional context

Dominant language
Python
Stars
169
Forks
59
Avg merge
4d 15h
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenSTEF/openstef

All issues in OpenSTEF/openstef

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.