Model Serialization Formats Pickle Vs Joblib Vs On
You’ve just spent three days tuning a gradient-boosted model. The cross-validation scores are finally where you want them. You lean back, satisfied, and close your Jupyter notebook tab. Then your stomach drops. The kernel died an hour ago, and you didn’t save anything. The model, the feature engineering pipeline, the carefully tuned hyperparameters — all of it, gone. If you’ve been doing data science for more than a week, you’ve probably lived through some version of this moment. It’s a rite of passage, and it teaches a brutal lesson: a model that only lives in memory isn’t really yours yet.
Serialization is just a fancy word for “saving your work.” But the format you choose ripples outward into everything that comes next. Can your colleague open the file without installing your exact Python environment? Will the file try to run malicious code when loaded? Can you deploy this model to a mobile app, or is it stuck inside a notebook forever? These questions don’t matter much when you’re just saving a checkpoint during training. They matter enormously when you’re shipping a model to production, sharing it with a team, or loading a pre-trained model from the internet.
In this article, we’ll walk through four formats that sit at different points on the spectrum between convenience and safety: pickle (Python’s built-in, and the most dangerous), joblib (the scikit-learn workhorse that inherits pickle’s risks), ONNX (a cross-framework standard that’s safe by design), and SavedModel (TensorFlow’s production-grade format). By the end, you’ll have a clear decision framework for choosing the right one — and you’ll never lose a model to a dead kernel again.
Let’s start with the simplest possible save-and-load loop, just to see what we’re trying to do. We’ll train a tiny scikit-learn model and save it with pickle, because pickle is built into Python and requires zero extra setup. This is the baseline action every data scientist reaches for first.
# The simplest possible save/load loop with pickle — the baseline action.
import pickle
from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
# Train a tiny model.
X, y = load_iris(return_X_y=True)
model = LogisticRegression(max_iter=200).fit(X, y)
# Save it.
with open("model.pkl", "wb") as f:
pickle.dump(model, f)
# Later, in a fresh session, load it back.
with open("model.pkl", "rb") as f:
loaded_model = pickle.load(f)
# It works — same predictions.
print("Original predictions:", model.predict(X[:3]))
print("Loaded predictions: ", loaded_model.predict(X[:3]))
That’s the dream: two lines to save, two lines to load, and your model is back exactly as you left it. But here’s the thing — that simplicity has a shadow. To understand why, we need to look under the hood of what pickle actually does.
Pickle: Python’s Built-in Time Capsule
Think of pickle as a “save game” for your Python session. In a video game, a save file doesn’t just store your score — it stores your character’s position, inventory, quest progress, and the state of every NPC you’ve interacted with. When you load that file, the game reconstructs the entire world exactly as you left it. Pickle does the same thing for Python objects. It takes a living, breathing object hierarchy — your trained model, its internal coefficients, the classes it depends on — and flattens it into a stream of bytes. When you unpickle, Python reconstructs the whole object graph from those bytes.
This is genuinely powerful. Pickle can serialize almost anything: custom classes, lambda functions, nested dictionaries, even objects that reference each other in cycles. Let’s prove it by saving a custom class with methods — something that feels almost magical the first time you see it.
# Pickle can save custom classes with methods — this is the power.
import pickle
class GreetingModel:
"""A silly custom class that 'predicts' a greeting."""
def __init__(self, name):
self.name = name
def predict(self, x):
return f"Hello {self.name}, you scored {x}%"
# Create an instance and save it.
original = GreetingModel("Ada")
with open("greeting.pkl", "wb") as f:
pickle.dump(original, f)
# Load it back — the method still works.
with open("greeting.pkl", "rb") as f:
loaded = pickle.load(f)
print(loaded.predict(95)) # "Hello Ada, you scored 95%"
The loaded object isn’t just data — it’s a fully functional Python object with working methods. That’s the power. And it’s also the problem.
This Is the Hardest Part
The same feature that makes pickle powerful is what makes it dangerous. Because pickle can reconstruct arbitrary objects, it can also execute arbitrary code during the loading process. A malicious pickle file doesn’t just contain data — it can contain instructions that run shell commands, install software, or exfiltrate files, all when you call pickle.load(). This isn’t a theoretical vulnerability. The official Python documentation warns about it in the strongest possible terms:
Warning: The pickle module is not secure. Only unpickle data you trust.
Let that sink in. The Python docs don’t say “be careful” or “consider the risks.” They say it is not secure, full stop. And they provide a concrete example of a malicious payload to prove the point. Here’s that example, adapted slightly for clarity. Do not run this on files you don’t trust.
# WARNING: This demonstrates why pickle is insecure.
# DO NOT load pickle files from untrusted sources.
# This example is from the official Python docs, adapted for clarity.
import pickle
import os
# This class is the malicious payload.
# When unpickled, it runs `os.system('echo MALICIOUS CODE EXECUTED')`.
class RunCommand:
def __reduce__(self):
# __reduce__ tells pickle how to reconstruct this object.
# A malicious actor can make it run any shell command.
return (os.system, ('echo MALICIOUS CODE EXECUTED',))
# Serialize the malicious object.
malicious_pickle = pickle.dumps(RunCommand())
# In a real attack, this byte string would be saved to a file
# and shared with the victim. When the victim calls pickle.load():
print("Loading the malicious pickle...")
pickle.loads(malicious_pickle)
print("If you see the echo above, arbitrary code just ran on your machine.")
When you run this, you’ll see “MALICIOUS CODE EXECUTED” printed to the terminal. That’s os.system running, and it could just as easily be rm -rf / or a curl command that sends your environment variables to a remote server. The __reduce__ method is the key — it tells pickle what function to call and what arguments to pass during reconstruction. A legitimate class uses it to reconstruct itself. An attacker uses it to run anything.
Now, you might wonder: does using a newer pickle protocol fix this? Python 3.8 introduced protocol 5, which adds support for out-of-band data and more efficient serialization of large objects. But the security model hasn’t changed at all. Every protocol version has the same fundamental vulnerability, because the vulnerability isn’t a bug — it’s the design. Pickle’s job is to reconstruct arbitrary Python objects, and arbitrary Python objects can do arbitrary things.
So when is pickle actually the right choice? When you control both ends of the pipeline — you’re saving a model on your laptop and loading it on the same laptop, or on a server you manage, in a workflow where no untrusted third party ever touches the file. In that narrow, trusted context, pickle’s simplicity and zero-dependency nature are genuine advantages. But the moment that file leaves your control — shared with a colleague, uploaded to a model hub, downloaded from the internet — pickle becomes a liability.
Joblib: The scikit-learn Workhorse (That Inherits Pickle’s Risks)
If you’ve worked with scikit-learn, you’ve probably seen code like joblib.dump(model, 'model.joblib'). Scikit-learn’s own documentation recommends joblib for model persistence, and for good reason: it’s faster than raw pickle when your model contains large NumPy arrays, and it handles compression transparently. But here’s the catch — and it’s a big one — joblib is built on top of pickle. It inherits all of pickle’s security risks, and its own documentation says so explicitly.
Let’s start with what joblib does well. The core innovation is memory-mapped loading. In plain English: when you save a large NumPy array with joblib, you can choose to load it back without copying the entire array into RAM. Instead, joblib leaves the data on disk and lets the operating system pull pieces into memory as needed. For a model with a giant fitted StandardScaler or a huge coefficient matrix, this can be the difference between instant loading and a painful wait.
Here’s a concrete comparison. We’ll create a scikit-learn pipeline with a StandardScaler fitted on a large dataset, then compare save and load times between pickle and joblib.
# Compare pickle vs. joblib speed for a model with a large NumPy array.
import time
import pickle
import joblib
import numpy as np
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
# Create a large dataset and fit a pipeline.
np.random.seed(42)
X_large = np.random.randn(100_000, 50) # 100k rows, 50 features
y_large = (X_large[:, 0] + X_large[:, 1] > 0).astype(int)
pipeline = Pipeline([
('scaler', StandardScaler()),
('clf', LogisticRegression(max_iter=200))
])
pipeline.fit(X_large, y_large)
# Time pickle save + load.
start = time.time()
with open("large_model.pkl", "wb") as f:
pickle.dump(pipeline, f)
with open("large_model.pkl", "rb") as f:
_ = pickle.load(f)
pickle_time = time.time() - start
# Time joblib save + load (with compression).
start = time.time()
joblib.dump(pipeline, "large_model.joblib", compress=3)
_ = joblib.load("large_model.joblib")
joblib_time = time.time() - start
print(f"Pickle time: {pickle_time:.2f}s")
print(f"Joblib time: {joblib_time:.2f}s")
print(f"Joblib is {pickle_time / joblib_time:.1f}x faster in this case.")
You’ll typically see joblib outperform pickle by a meaningful margin on large numeric arrays — sometimes 2-5x faster, depending on the data and compression settings. The compress parameter (0-9) controls the tradeoff: higher compression saves disk space but costs more CPU time, and critically, compression disables memory-mapping. You can’t have both. If you need memory-mapped loading for out-of-core workflows, use compress=0.
Now here’s the catch. Joblib’s own documentation contains a security warning that mirrors pickle’s:
joblib.loadrelies on the pickle module and can therefore execute arbitrary Python code. It should therefore never be used to load files from untrusted sources.
This isn’t a theoretical risk that only matters to cybersecurity researchers. It’s the exact same arbitrary-code-execution vulnerability as pickle, just wrapped in a more convenient API. Many practitioners assume joblib is a “safer” alternative to pickle because it’s recommended by scikit-learn. It’s not. It’s a faster alternative for numeric data, but it’s equally dangerous with untrusted files.
Let’s verify this. We’ll create a malicious joblib file using the same __reduce__ trick, then load it — just to prove the risk is real.
# WARNING: This demonstrates that joblib inherits pickle's security risk.
# DO NOT load joblib files from untrusted sources.
import joblib
import os
class RunCommand:
def __reduce__(self):
return (os.system, ('echo JOBLIB CAN ALSO EXECUTE ARBITRARY CODE',))
# Save the malicious object as a .joblib file.
joblib.dump(RunCommand(), "malicious.joblib")
# Loading it runs the command.
print("Loading the malicious joblib file...")
joblib.load("malicious.joblib")
print("If you see the echo above, joblib just ran arbitrary code on your machine.")
When joblib is the right choice: you’re in a trusted environment, working with scikit-learn models that contain large NumPy arrays, and you need fast save/load with optional compression. For quick experimentation, checkpointing during training, or sharing with close colleagues on the same codebase, joblib is excellent. But if that file is going anywhere you don’t fully control, you need a fundamentally different approach.
The Security Reality Check: What scikit-learn Actually Recommends
Before we move to the “safe” formats, let’s pause and look at what the library we’re serializing actually says. Scikit-learn’s model persistence page now ranks formats by security, and the ranking is unambiguous:
- ONNX — most secure. The format is inspectable, and models can run without a Python runtime at all.
- skops.io — validates types before loading, reducing (but not eliminating) the attack surface.
- joblib / pickle — fastest, but “has many documented security vulnerabilities by design.”
What this actually means: the scikit-learn team is telling you, in their own documentation, that if you’re loading models from anywhere you don’t fully control, pickle and joblib are the wrong tools. The “by design” language is important — it’s not a bug they plan to fix. It’s the fundamental nature of how these formats work.
The key insight is this: pickle and joblib serialize arbitrary Python objects. ONNX and SavedModel serialize a model’s computation graph and weights in a constrained, language-agnostic format. There’s no mechanism for arbitrary code execution because the format doesn’t support the concept of “run this Python function on load.” It only supports “here is a matrix multiply, here is an activation function, here are the weights.”
This is the fundamental fork in the road. Ask yourself: do you need to save a Python object (use pickle/joblib, accept the risk), or do you need to save a model that can run anywhere (use ONNX/SavedModel)? The answer depends on your context, but the question itself is the most important thing to carry forward.
(A quick note on skops.io: it’s a newer library that tries to bridge this gap by validating types during deserialization. It’s a promising direction and worth watching, but it’s not yet as widely adopted as the four formats in our title. For now, we’ll focus on the established options.)
ONNX: The Universal Translator for Models
ONNX (Open Neural Network Exchange) isn’t a Python serialization format at all — it’s a model representation standard. Think of it as a universal translator. You can train a model in PyTorch, save it as ONNX, and deploy it in a C++ application, a web browser, or a mobile app. The ONNX file doesn’t contain Python code. It contains a computation graph: a list of operations (like “matrix multiply” or “ReLU”), their connections, and the trained weights. When you load an ONNX model, you’re loading a recipe that any ONNX-compatible runtime can execute — not a Python object that can do anything it wants.
This constrained design is what makes ONNX safe by design. There’s no __reduce__ method, no arbitrary code execution path. The worst a malicious ONNX file could do is describe a nonsense computation graph that fails to run. It can’t shell out to your operating system.
The portability win is just as important. An ONNX model can move between PyTorch, scikit-learn (via the sklearn-onnx converter), TensorFlow, and runtimes like ONNX Runtime (optimized C++/C#) or ONNX.js (browser). If you need framework-agnostic serving, ONNX is the answer.
The tradeoff: not every Python model can be exported to ONNX. Only the computation graph goes — arbitrary preprocessing logic, custom Python classes, or dynamic control flow that depends on Python constructs won’t make the trip. You’re trading flexibility for safety and portability.
Let’s see it in action. We’ll train a scikit-learn pipeline, export it to ONNX, and run inference with ONNX Runtime — without the original Python class.
# Export a scikit-learn model to ONNX and run inference without Python.
import numpy as np
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import Pipeline
# Train a pipeline.
X, y = load_iris(return_X_y=True)
pipeline = Pipeline([
('scaler', StandardScaler()),
('clf', RandomForestClassifier(n_estimators=10, random_state=42))
])
pipeline.fit(X, y)
# Convert to ONNX. We need to specify the input type.
from skl2onnx import convert_sklearn
from skl2onnx.common.data_types import FloatTensorType
# Define the input shape: 4 features (iris), batch size can vary.
initial_type = [('float_input', FloatTensorType([None, 4]))]
onnx_model = convert_sklearn(pipeline, initial_types=initial_type)
# Save the ONNX model.
with open("model.onnx", "wb") as f:
f.write(onnx_model.SerializeToString())
# Now load it with ONNX Runtime — no sklearn import needed for inference.
import onnxruntime as ort
session = ort.InferenceSession("model.onnx")
input_name = session.get_inputs()[0].name
output_name = session.get_outputs()[0].name
# Run inference on the first 3 samples.
onnx_pred = session.run([output_name], {input_name: X[:3].astype(np.float32)})[0]
print("ONNX predictions:", onnx_pred)
print("Original predictions:", pipeline.predict(X[:3]))
Notice what we didn’t need: no RandomForestClassifier, no StandardScaler, no scikit-learn at all in the inference step. The ONNX Runtime just needs the .onnx file. That’s the portability promise.
Let’s inspect what’s actually inside that file. An ONNX model is a graph of operators — you can examine it to see exactly what operations will run.
# Inspect the ONNX model's graph structure — it's just operators and weights.
import onnx
model = onnx.load("model.onnx")
print("Graph inputs:")
for inp in model.graph.input:
print(f" {inp.name}: {inp.type}")
print("\nGraph nodes (first 5):")
for node in model.graph.node[:5]:
print(f" Op: {node.op_type}, Inputs: {list(node.input)}, Outputs: {list(node.output)}")
print("\nGraph outputs:")
for outp in model.graph.output:
print(f" {outp.name}: {outp.type}")
Nodes like Scaler, TreeEnsembleClassifier — these are the ONNX operators that correspond to the scikit-learn components. There’s no Python bytecode, no __reduce__, no executable code. Just a graph and weights. That’s why ONNX is safe.
A closely related format worth mentioning is safetensors. It’s designed specifically for tensor weights (very common in large language models), with the same “safe by design” philosophy. Safetensors files contain pure tensor data with a metadata header — no Python objects, no code execution possible. It’s become the de facto standard for sharing LLM weights on Hugging Face, and it loads faster than pickle-based formats because it supports zero-copy reading. If you’re working with transformer models, safetensors is the format you want for weight storage.
SavedModel: TensorFlow’s Production-Grade Time Capsule
SavedModel is TensorFlow’s answer to the same problem ONNX solves, but within its own ecosystem. It’s a complete, self-contained program: trained weights, the computation graph, and any asset files (like vocabulary files for text models) all bundled together in a directory. When you save a Keras model in SavedModel format, you’re creating an artifact that can be deployed to TensorFlow Serving, TensorFlow Lite (mobile), TensorFlow.js (browser), or TensorFlow Hub — all without the original Python model-building code.
The key difference from a checkpoint: a TensorFlow checkpoint (.ckpt) only stores the weights. It’s like saving the coefficients of your model but not the formula. To use a checkpoint, you need the original model-building code to reconstruct the architecture. A SavedModel stores weights plus the computation graph plus assets — it’s a standalone deployable artifact. You can load it and run inference without ever seeing the code that created it.
Like ONNX, SavedModel stores a constrained computation graph, not arbitrary Python objects. Loading a SavedModel doesn’t execute arbitrary Python code — it reconstructs a TensorFlow graph from the serialized protocol buffer. The security model is fundamentally different from pickle.
The tradeoff: SavedModel is TensorFlow-specific. If you need to move between PyTorch and TensorFlow, ONNX is the bridge. If you’re all-in on the TensorFlow ecosystem, SavedModel is the native, optimized path — it integrates seamlessly with TF Serving for production APIs, TFLite for mobile, and TF.js for browser inference.
Let’s save a Keras model as a SavedModel, load it back, and verify it works without the original model definition.
# Save a Keras model in SavedModel format and reload without the original code.
import numpy as np
import tensorflow as tf
# Create and train a simple model.
X = np.random.randn(1000, 10)
y = (X[:, 0] + X[:, 1] > 0).astype(np.float32)
model = tf.keras.Sequential([
tf.keras.layers.Dense(16, activation='relu', input_shape=(10,)),
tf.keras.layers.Dense(1, activation='sigmoid')
])
model.compile(optimizer='adam', loss='binary_crossentropy')
model.fit(X, y, epochs=5, verbose=0)
# Save as SavedModel.
model.save("my_saved_model")
# Now, in a fresh Python session (simulated here),
# load the SavedModel without the original model-building code.
loaded = tf.saved_model.load("my_saved_model")
# The loaded object is a SavedModel, not a Keras model.
# We access the inference function through the serving signature.
infer = loaded.signatures["serving_default"]
# Run inference.
input_tensor = tf.constant(X[:3], dtype=tf.float32)
output = infer(input_tensor)
print("Predictions from loaded SavedModel:")
print(output['output_0'].numpy())
Notice we didn’t redefine the Sequential model or the layer architecture. The tf.saved_model.load call reconstructed everything from the SavedModel directory. Let’s peek inside that directory to see what’s actually stored.
# Inspect the SavedModel directory structure.
import os
print("SavedModel directory contents:")
for root, dirs, files in os.walk("my_saved_model"):
level = root.replace("my_saved_model", "").count(os.sep)
indent = " " * 2 * level
print(f"{indent}{os.path.basename(root)}/")
subindent = " " * 2 * (level + 1)
for file in files:
print(f"{subindent}{file}")
You’ll see saved_model.pb (the protocol buffer containing the computation graph), a variables/ directory with the trained weights, and an assets/ directory (empty here, but it would contain vocabulary files or other resources for a text model). That’s the complete, self-contained program.
The Decision Matrix: Which Format When?
We’ve covered a lot of ground. Let’s distill everything into a practical decision framework. When you’re standing in front of a trained model, wondering how to save it, ask yourself three questions in order:
Question 1: Do you trust the source of the file?
This is the security question, and it’s the most important one. If you don’t fully trust the file’s source — you’re loading a model from the internet, from a user upload, from a third-party API — eliminate pickle and joblib immediately. They can execute arbitrary code on your machine. ONNX and SavedModel are the only safe choices in this scenario because they store constrained computation graphs, not arbitrary Python objects.
Question 2: Do you need cross-framework portability?
If you’re training in PyTorch and deploying to a C++ application, or training in scikit-learn and serving with ONNX Runtime, ONNX is your answer. It’s the universal translator. If you’re staying entirely within the TensorFlow ecosystem — training with Keras, serving with TF Serving, deploying to mobile with TFLite — SavedModel is the native, optimized choice. It integrates more smoothly with TensorFlow-specific tooling than ONNX does.
Question 3: Are you deploying to production or just saving intermediate work?
For quick experimentation, checkpointing during training, or sharing with close colleagues on the same trusted codebase, pickle and joblib are fine — they’re fast, simple, and require no extra dependencies. For production serving, ONNX and SavedModel are the standard. They’re designed for deployment: they’re safe, portable, and optimized for inference runtimes.
Here’s the same logic in a table:
| Format | Security Model | Portability | Speed | Best For |
|---|---|---|---|---|
| Pickle | Insecure by design — arbitrary code execution | Python-only | Fast for small objects | Trusted, internal experimentation |
| Joblib | Same as pickle — inherits all risks | Python-only, scikit-learn optimized | Fast for large NumPy arrays | Trusted scikit-learn workflows with big numeric data |
| ONNX | Safe by design — graph + weights only | Cross-framework (PyTorch, sklearn, TF, C++, JS) | Optimized by ONNX Runtime | Production serving, cross-framework deployment, untrusted sources |
| SavedModel | Safe by design — graph + weights + assets | TensorFlow ecosystem (Serving, Lite, JS, Hub) | Native TF optimization | Production TF deployments, mobile/browser via TFLite/TF.js |
| Safetensors | Safe by design — pure tensor data | Cross-framework for weight storage | Zero-copy, fast | LLM weight distribution, Hugging Face models |
And if you prefer a flowchart: start with “Do I trust the file source?” If no, go to ONNX or SavedModel. If yes, ask “Do I need cross-framework portability?” If yes, ONNX. If no, ask “Am I in the TensorFlow ecosystem?” If yes, SavedModel. If no, ask “Do I have large NumPy arrays?” If yes, joblib. If no, pickle.
What We Learned
We started with a dead kernel and a lost model — the moment every data scientist learns that memory is not storage. From there, we walked through four serialization formats, each with its own tradeoffs:
- Pickle is the simplest, built right into Python, and can save almost any object. But it’s fundamentally insecure against untrusted input — loading a malicious pickle file can run arbitrary code on your machine.
- Joblib is faster with large NumPy arrays and adds compression, but it’s built on pickle and inherits all the same security risks. It’s a performance upgrade, not a safety upgrade.
- ONNX is a cross-framework standard that stores a model as a computation graph and weights — no arbitrary code execution possible. It’s safe by design and portable across frameworks, but it can’t serialize arbitrary Python objects.
- SavedModel is TensorFlow’s production format: weights, graph, and assets in one self-contained package. Safe, deployable to TF Serving/Lite/JS, but TensorFlow-specific.
The meta-lesson: serialization format choice is a security decision, not just a performance one. The moment a model file leaves your trusted environment, the format you chose determines whether you’re sharing a model or sharing a potential attack vector.
Check Your Understanding
Remember: What are the four formats covered in this article, and which one is built into Python’s standard library?
Understand: Explain in your own words why pickle and joblib can execute arbitrary code when loading a file. What specific Python mechanism makes this possible?
Apply: You’ve trained a scikit-learn model and need to share it with a colleague who uses PyTorch for deployment. Which format do you choose, and why?
Analyze: A blog post claims “joblib is safer than pickle for saving models.” Is this claim accurate? Use evidence from the article (including the official documentation warnings) to support your answer.
Evaluate: Compare the tradeoffs of ONNX versus SavedModel for a team that trains models in TensorFlow but wants to deploy to a C++ application. Which format would you recommend, and what are you giving up with that choice?
Create: Write a short function save_model_safely(model, filepath, format) that chooses the right serialization format based on the model type and intended use case. Your function should include appropriate warnings when pickle or joblib are selected, and it should handle at least scikit-learn and Keras models.
Apply What You Learned is for Supporter and Insider subscribers.
Subscribe to unlock the exercises on this post.
See plansRelated articles
- Python Engineering Under review
Class Imbalance Smote Undersampling And When Neith
from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split from sklearn.dummy import DummyClassifier from sklearn.
- Python Engineering Under review
Python Desktop Gui Frameworks Compared Tkinter Vs
Before we write a single line of code, we need a mental model for comparing these tools. Think of it like choosing a vehicle.
- Python Engineering Under review
Model Comparison Statistics: Is This Model Actually Better, or Just Lucky?
You've spent three days tuning hyperparameters. You've tried different architectures, fiddled with learning rates, and even thrown in some feature engineering. Finally, you have two models that look promising.
- Python Engineering Under review
Linear Algebra For Data Science Vectors And Matric
A vector is just a list of numbers that travel together as a unit. Think of it as a single row in your dataset: `[2500, 3, 15]` for one house — 2500 square feet, 3 bedrooms, 15 years old.
Looking for something else?
Search every article by title, summary or topic.