MLBazaar / MLBazaar/MLBlocks

Implement Save/Load using pickle

Open
#120 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue new feature
Dominant language
Python
Stars
124
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Current save/load methods focus on dumping and loading the pipeline definition in its JSON form, but provide no means to save a fitted pipeline and load it later to make predictions, being the usage of pickle outside of the pipeline the only way to go.

Let's re-implement the save/load methods to save the whole pipeline instance, and move the current save functionality to a to_json method.

Note that from_json is not needed anymore because the pipeline annotation can already be passed as a JSON path in the pipeline __init__ method.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the pipeline save/load methods and the pipeline init handling of JSON paths. Review how the current JSON definition is serialized, then verify that save/load preserve a fitted pipeline for later predictions while the JSON export remains available as to_json. No test files are named in the issue, so identify the relevant serialization or pipeline tests before changing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.