Skip to content

Commit

Permalink
Update tensor_prod.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Spinachboul authored Jan 14, 2024
1 parent 1307c4e commit 3cab1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/tensor_prod.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plot_data_and_true_function(x_train, y_train, x_test, y_test, a, lb, ub)
# Training various Surrogates
Now let's train various surrogate models and evaluate their performance on the test data

```@example tensor
```
# Train different surrogate models
function train_surrogates(x_train, y_train, lb, ub, alpha=2.0, n=6)
loba = LobachevskySurrogate(x_train, y_train, lb, ub, alpha=alpha, n=n)
Expand Down Expand Up @@ -89,7 +89,7 @@ plot_surrogate_predictions(loba_pred, krig_pred, x_test, y_test, 2.0, lb, ub)
# Reporting the best Surrogate Model
To determine the best surrogate, you can compare their accuracy and performance metrics on the test data. For instance, you can calculate and compare the mean squared error (MSE) or any other relevant metric

```@example tensor
```
using Statistics
# Evaluate performance metrics
Expand Down

0 comments on commit 3cab1bf

Please sign in to comment.