Skip to content

Commit

Permalink
Fix broken links in docs and comments ludwig-ai#740
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuzmin-uber committed Jun 14, 2020
1 parent 67e247f commit 59e11fe
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ Refer to the [Developer Guide](https://ludwig-ai.github.io/ludwig-docs/developer
Full documentation
------------------

You can find the full documentation [here](http://uber.github.io/ludwig/).
You can find the full documentation [here](https://ludwig-ai.github.io/ludwig-docs).
2 changes: 1 addition & 1 deletion examples/kfold_cv/regression_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {},
"source": [
"# K-fold cross validation - Regression Model\n",
"Based on the [Ludwig regression example](https://uber.github.io/ludwig/examples/#simple-regression-fuel-efficiency-prediction) \n",
"Based on the [Ludwig regression example](https://ludwig-ai.github.io/ludwig-docs/examples/#simple-regression-fuel-efficiency-prediction) \n",
"\n",
"[Data set](https://archive.ics.uci.edu/ml/datasets/auto+mpg)\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/mnist/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MNIST Hand-written Digit Classification

This API example is based on [Ludwig's MNIST Hand-written Digit image classification example](https://uber.github.io/ludwig/examples/#image-classification-mnist).
This API example is based on [Ludwig's MNIST Hand-written Digit image classification example](https://ludwig-ai.github.io/ludwig-docs/examples/#image-classification-mnist).

### Preparatory Steps
To create data for training and testing run this command:
Expand Down
6 changes: 3 additions & 3 deletions examples/mnist/simple_model_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# coding: utf-8

# # Simple Model Training Example
#
#
# This example is the API example for this Ludwig command line example
# (https://uber.github.io/ludwig/examples/#image-classification-mnist).
# (https://ludwig-ai.github.io/ludwig-docs/examples/#image-classification-mnist).

# Import required libraries

Expand All @@ -29,7 +29,7 @@
model = LudwigModel(model_definition,
logging_level=logging.INFO)

# initiate model training
# initiate model training
train_stats = model.train(data_train_csv='./data/mnist_dataset_training.csv',
data_test_csv='./data/mnist_dataset_testing.csv',
experiment_name='simple_image_experiment',
Expand Down
4 changes: 2 additions & 2 deletions examples/titanic/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kaggle Titanic Survivor Prediction

This API example is based on [Ludwig's Kaggle Titanic example](https://uber.github.io/ludwig/examples/#kaggles-titanic-predicting-survivors) for predicting probability of surviving.
This API example is based on [Ludwig's Kaggle Titanic example](https://ludwig-ai.github.io/ludwig-docs/examples/#kaggles-titanic-predicting-survivors) for predicting probability of surviving.

### Preparatory Steps
* Create `data` directory
Expand Down Expand Up @@ -41,4 +41,4 @@ two models. Results will in the following directories:
![](../images/learning_curves_Survived_accuracy.png)

This is the custom visualization created by the Jupyter notebook `model_training_results.ipynb`.
![](../images/custom_learning_curve.png)
![](../images/custom_learning_curve.png)
6 changes: 3 additions & 3 deletions examples/titanic/simple_model_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# coding: utf-8

# # Simple Model Training Example
#
#
# This example is the API example for this Ludwig command line example
# (https://uber.github.io/ludwig/examples/#kaggles-titanic-predicting-survivors).
# (https://ludwig-ai.github.io/ludwig-docs/examples/#kaggles-titanic-predicting-survivors).

# Import required libraries

Expand All @@ -24,7 +24,7 @@
model = LudwigModel(model_definition_file='./model1_definition.yaml',
logging_level=logging.INFO)

# initiate model training
# initiate model training
train_stats = model.train(data_csv='./data/train.csv',
experiment_name='simple_experiment',
model_name='simple_model')
Expand Down
2 changes: 1 addition & 1 deletion ludwig/features/image_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _read_image_and_resize(
"or explicit image width and height are expected"
"to be provided. "
"Additional information: "
"https://uber.github.io/ludwig/user_guide/#image-features-preprocessing"
"https://ludwig-ai.github.io/ludwig-docs/user_guide/#image-features-preprocessing"
.format([img_height, img_width, num_channels], img.shape)
)

Expand Down
6 changes: 3 additions & 3 deletions tests/integration_tests/test_visualization_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(self, csv_filename):
self.output_feature_name = self.output_features[0]['name']
# probabilities need to be list of lists containing each row data
# from the probability columns
# ref: https://uber.github.io/ludwig/api/#test - Return
# ref: https://ludwig-ai.github.io/ludwig-docs/api/#test - Return
num_probs = self.output_features[0]['vocab_size']
self.probability = self.test_stats_full[0].iloc[:, 1:(num_probs+2)].values
self.ground_truth_metadata = self.model.train_set_metadata
Expand Down Expand Up @@ -506,7 +506,7 @@ def test_confidence_thresholding_2thresholds_2d_vis_api(csv_filename):
output_feature_name1 = output_features[0]['name']
output_feature_name2 = output_features[1]['name']
# probabilities need to be list of lists containing each row data from the
# probability columns ref: https://uber.github.io/ludwig/api/#test - Return
# probability columns ref: https://ludwig-ai.github.io/ludwig-docs/api/#test - Return
probability1 = test_stats[0].iloc[:, [2, 3, 4]].values
probability2 = test_stats[0].iloc[:, [7, 8, 9]].values

Expand Down Expand Up @@ -572,7 +572,7 @@ def test_confidence_thresholding_2thresholds_3d_vis_api(csv_filename):
output_feature_name1 = output_features[0]['name']
output_feature_name2 = output_features[1]['name']
# probabilities need to be list of lists containing each row data from the
# probability columns ref: https://uber.github.io/ludwig/api/#test - Return
# probability columns ref: https://ludwig-ai.github.io/ludwig-docs/api/#test - Return
probability1 = test_stats[0].iloc[:, [2, 3, 4]].values
probability2 = test_stats[0].iloc[:, [7, 8, 9]].values

Expand Down

0 comments on commit 59e11fe

Please sign in to comment.