Model Reimport
Overview
Model reimport allows you to reload previously exported models back into MixModeler, recreating them exactly as they were. This feature enables archiving, sharing models across teams, backing up work, and continuing analysis after extended breaks.
Why Reimport Models
Archive and Restore: Save models for long-term storage, reload when needed
Collaboration: Share models with colleagues who can import and explore
Backup: Protect against data loss by regularly exporting models
Versioning: Maintain multiple versions of a model, compare iterations
Migration: Move models between accounts or environments
Reproducibility: Ensure exact model recreation for audit or compliance purposes
What Gets Reimported
Complete Model Recreation
When you reimport, MixModeler recreates:
✓ Model Configuration: Name, KPI, features, date range ✓ Variable Transformations: Adstock, splits, multiplications, all engineering ✓ Model Type: OLS or Bayesian specification ✓ Bayesian Settings: Priors, MCMC settings (if Bayesian) ✓ Fixed Coefficients: Any coefficients that were fixed ✓ Model Results: Coefficients, statistics, fit metrics ✓ Decomposition Groups: Attribution categories and assignments
What's Required
Essential Components in Excel export:
Model Info sheet (model metadata)
Data sheet (complete dataset)
Coefficients sheet (model results)
Variable Transformations sheet (if transformations exist)
Optional but Recommended:
Model Statistics sheet
Decomposition sheets
All other sheets (preserved for reference)
Reimport Process
Step-by-Step Instructions
1. Ensure Original Data Loaded
Before importing a model, you must have the original dataset uploaded:
Go to Data Upload page
Upload the same Excel/CSV file used for original model
Or upload the Data sheet from the exported model
Verify data loads successfully
Why Required: Model reimport needs the complete dataset to recreate transformations and refit the model
2. Navigate to Model Library
Click Model Library in navigation
Look for Import Model button at top of page
3. Select Export File
Click Import Model
Browse and select your exported Excel file (
.xlsx)File uploads and validation begins
4. Validation and Confirmation
MixModeler validates the file:
✓ Required sheets present ✓ Data structure intact ✓ Variable names match loaded dataset ✓ Transformations can be recreated
Validation Messages:
"✓ Model Info validated"
"✓ Data matches loaded dataset"
"✓ Coefficients sheet verified"
"✓ Transformations validated"
5. Model Recreation
If validation passes:
Transformations are recreated
Model is refit using original data
Results are validated against exported coefficients
Model added to library
Success Message: "Model 'ModelName' successfully imported!"
Duration: 3-10 seconds depending on model complexity
Viewing Reimported Model
After successful import:
Model appears in Model Library
Name may have "(Imported)" suffix if duplicate name exists
All features accessible (diagnostics, decomposition, export, etc.)
Results match original export (within numerical precision)
Requirements and Compatibility
File Format
Supported: Excel files (.xlsx) exported from MixModeler
Not Supported:
Modified Excel files (with structural changes)
Manual Excel files (not exported from MixModeler)
CSV files (use Data Upload instead)
Other formats (.xls, .ods, etc.)
Data Requirement
Critical: Original dataset must be loaded before importing model
Why: Model export contains model specification and results, but reimport recreates the model from scratch using your data
Workflow:
Upload data (Data Upload page)
Import model (Model Library)
Model recreated using uploaded data
Common Mistake: Trying to import model without loading data first → Fails with error "Dataset not found"
MixModeler Version
Same Version: Best compatibility - export and import on same MixModeler version
Newer Version: Usually compatible - newer versions can import older exports
Older Version: May fail - older versions cannot import exports from newer versions with new features
Recommendation: Keep MixModeler updated for best import compatibility
Validation and Error Handling
Automatic Validation Checks
File Structure:
Required sheets exist (Model Info, Data, Coefficients)
Column headers match expected format
No critical data corruption
Data Consistency:
KPI variable exists in loaded dataset
Feature variables exist in loaded dataset
Variable names match across sheets
Transformation source variables exist
Model Specification:
Model type valid (OLS or Bayesian)
Coefficients sheet has valid data
Transformation parameters are complete
No circular transformation dependencies
Common Import Errors
Error: "Dataset not loaded"
Cause: Original data not uploaded before import attempt
Solution:
Go to Data Upload
Upload the original dataset
Return to Model Library and retry import
Error: "Variable [X] not found in dataset"
Cause: Dataset loaded doesn't contain all variables from model
Solution:
Verify correct dataset is loaded
Check variable names match exactly (case-sensitive)
Ensure dataset includes all features used in model
Error: "Invalid model specification"
Cause: Model Info sheet corrupted or modified
Solution:
Use unmodified export file
Check Model Info sheet has all required fields
Verify field values are valid
Error: "Transformation failed: [details]"
Cause: Variable transformation cannot be recreated
Solution:
Check Variable Transformations sheet is intact
Verify source variables exist in dataset
Ensure transformation parameters are valid
Error: "Sheet [X] not found"
Cause: Required sheet deleted or renamed
Solution:
Use original, unmodified export file
Ensure no sheets were deleted
Check sheet names weren't changed
Warning Messages
Warning: "Coefficient mismatch detected"
Meaning: Reimported model coefficients differ slightly from exported values
Typical Cause: Numerical precision differences, expected variation
Action: If difference is very small (<0.1%), this is normal. If large, investigate data differences.
Warning: "Date range adjusted"
Meaning: Loaded dataset date range differs from original
Action: Verify correct dataset loaded. Model will use available dates.
Warning: "Decomposition groups not restored"
Meaning: Decomposition group assignments not found in export
Action: Manually recreate decomposition groups if needed
Best Practices for Successful Reimport
Before Export
Document Model:
Add notes to Model Info about data source
Record data file name and version
Document any special considerations
Export with Decomposition:
Check "Include Decomposition" when exporting
Preserves attribution group assignments
Saves time on reimport
Test Export Immediately:
After exporting, immediately test reimport
Catch any issues while model is still fresh in memory
Verify everything imports correctly
Organizing Exports
File Naming Convention:
Examples:
Q4_Campaign_v1_20250104.xlsxAnnual_Model_Final_20250115.xlsxTest_Model_Baseline_20241220.xlsx
Storage Structure:
When Sharing Models
Include with Export:
Original data file (or export Data sheet)
README with import instructions
Any documentation about model purpose
Note about required MixModeler version
Share Package Structure:
README Template:
Advanced Reimport Scenarios
Reimporting Bayesian Models
Additional Considerations:
Prior specifications preserved and restored
MCMC settings restored
Can rerun sampling with different settings after import
Convergence diagnostics from original export preserved
Workflow:
Import model (recreates structure and priors)
Original MCMC results loaded from export
Optionally rerun Bayesian inference with new settings
Compare original vs new MCMC results
Reimporting with Different Data
Use Case: Apply same model structure to new time period
Not Recommended: Import designed for exact recreation
Better Approach:
Create new model using Model Builder
Copy specifications from exported Model Info
Manually recreate transformations
Fit new model to new data
Workaround:
Import model with original data
Use Model Builder to modify date range
Refit model with new date range
Save as new model version
Partial Imports
Scenario: Want only transformations or configuration, not full model
Workaround:
Import full model
Use as template
Modify as needed in Model Builder
Delete original imported model if not needed
Alternative: Manually recreate transformations using Variable Transformations sheet as reference
Troubleshooting Import Issues
Model Imports But Results Differ
Possible Causes:
Different data loaded than original
Data file has been updated since export
Variable names changed
Numerical precision differences
Diagnosis:
Compare loaded data to exported Data sheet
Check variable names match exactly
Verify date range matches
Compare coefficient differences (should be <0.1%)
Solution: Reload original data exactly as it was when model exported
Import Hangs or Times Out
Possible Causes:
Very large file (>10 MB)
Complex transformations
Network issues
Browser limitations
Solutions:
Wait 30-60 seconds (large models take time)
Refresh page and retry
Try different browser
Check network connection
Simplify model (if possible) before export
Import Succeeds But Model Errors
Possible Causes:
Partial import completed
Data integrity issues
Model metadata corrupted
Solutions:
Delete partially imported model
Verify export file is complete and valid
Try reimporting with fresh data upload
Contact support if issue persists
Limitations
Cannot Import:
Models from other MMM tools
Manually created Excel files (not exported from MixModeler)
Heavily modified export files
Corrupt or incomplete exports
Not Preserved Exactly:
Custom notes added after model creation (unless in export)
Temporary session state
Diagnostic test history (only final results in export)
Chart customizations
Requires:
Original data file
Unmodified export structure
Compatible MixModeler version
Next Steps: Review Excel Export Features to understand what gets exported, or explore Sharing Results with Stakeholders for collaboration best practices.
Last updated