Skip to content

Commit df075be

Browse files
authored
Fix "infered" -> ""inferred"
1 parent e4ef6d5 commit df075be

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

site/en/tutorials/audio/transfer_learning_audio.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@
287287
"scores, embeddings, spectrogram = yamnet_model(testing_wav_data)\n",
288288
"class_scores = tf.reduce_mean(scores, axis=0)\n",
289289
"top_class = tf.argmax(class_scores)\n",
290-
"infered_class = class_names[top_class]\n",
290+
"inferred_class = class_names[top_class]\n",
291291
"\n",
292-
"print(f'The main sound is: {infered_class}')\n",
292+
"print(f'The main sound is: {inferred_class}')\n",
293293
"print(f'The embeddings shape: {embeddings.shape}')"
294294
]
295295
},
@@ -629,8 +629,8 @@
629629
"scores, embeddings, spectrogram = yamnet_model(testing_wav_data)\n",
630630
"result = my_model(embeddings).numpy()\n",
631631
"\n",
632-
"infered_class = my_classes[result.mean(axis=0).argmax()]\n",
633-
"print(f'The main sound is: {infered_class}')"
632+
"inferred_class = my_classes[result.mean(axis=0).argmax()]\n",
633+
"print(f'The main sound is: {inferred_class}')"
634634
]
635635
},
636636
{
@@ -806,16 +806,16 @@
806806
"scores, embeddings, spectrogram = yamnet_model(waveform)\n",
807807
"class_scores = tf.reduce_mean(scores, axis=0)\n",
808808
"top_class = tf.argmax(class_scores)\n",
809-
"infered_class = class_names[top_class]\n",
809+
"inferred_class = class_names[top_class]\n",
810810
"top_score = class_scores[top_class]\n",
811-
"print(f'[YAMNet] The main sound is: {infered_class} ({top_score})')\n",
811+
"print(f'[YAMNet] The main sound is: {inferred_class} ({top_score})')\n",
812812
"\n",
813813
"reloaded_results = reloaded_model(waveform)\n",
814814
"your_top_class = tf.argmax(reloaded_results)\n",
815-
"your_infered_class = my_classes[your_top_class]\n",
815+
"your_inferred_class = my_classes[your_top_class]\n",
816816
"class_probabilities = tf.nn.softmax(reloaded_results, axis=-1)\n",
817817
"your_top_score = class_probabilities[your_top_class]\n",
818-
"print(f'[Your model] The main sound is: {your_infered_class} ({your_top_score})')"
818+
"print(f'[Your model] The main sound is: {your_inferred_class} ({your_top_score})')"
819819
]
820820
},
821821
{

0 commit comments

Comments
 (0)