Skip to content

Is there a way to save a trained Splink model (much like saving a trained Keras neural network)? #1282

Answered by RobinL
jkginfinite asked this question in Q&A
Discussion options

You must be logged in to vote

The save_settings_to_json() function actually does save the trained model weights. Now that you mention it, I can see why the method name is confusing - it doesn't just save the settings it also saves the trained weights.

The following example shows how to load them back in:
https://moj-analytical-services.github.io/splink/demos/tutorials/05_Predicting_results.htm

I believe there may also have been a recent change where you can also pass the path to the settings JSON when you instantiate the linker

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@RobinL
Comment options

@RossKen
Comment options

@jkginfinite
Comment options

@aeshirey
Comment options

@RobinL
Comment options

Answer selected by jkginfinite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants