You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
. Open the Python Notebook in the JupyterLab Interface.
143
143
+
144
-
The JupyterLab interface is presented after uploading `kaggle.json` and cloning the `openshift-ai``repository shown the file browser on the left with 'openshift-ai' and '.kaggle.json
144
+
The JupyterLab interface is presented after uploading `kaggle.json` and cloning the `openshift-ai`repository shown the file browser on the left with `openshift-ai` and ``.kaggle.json`.`
145
145
146
-
. Open `Interactive_Image_Classification_Notebook.ipynb`` in the `openshift-ai` directory and run the notebook, The notebook contains all necessary instructions and is self-documented.
146
+
. Open `Interactive_Image_Classification_Notebook.ipynb` in the `openshift-ai` directory and run the notebook, the notebook contains all necessary instructions and is self-documented.
147
147
148
148
. Run the cells in the Python Notebook as follows:
149
149
150
150
.. Start by executing each cell in order by pressing the play button or using the keyboard shortcut "Shift + Enter"
151
151
152
-
.. Once you run the cell in Step 4, you should see an output as shown in Figure 12 below.
152
+
.. Once you run the cell in Step 4, you should see an output as shown in the following screenshot.
153
+
+
154
+
image::rhoai/predict-step4.png[Interactive Real-Time Data Streaming and Visualization]
155
+
156
+
.. Running the cell in Step 5, produces an output of two images, one of a cat and one of a dog, with their respective predictions labeled as "Cat" and "Dog".
157
+
158
+
.. Once the code in the cell is executed in Step 6, a predict button will appear as shown in screenshot below. The interactive session will display images with their predicted labels in real-time as the user clicks the "Predict" button. This dynamic interaction helps in understanding how well the model performs across a random set of images and provides insights into potential improvements for model training.
159
+
+
160
+
image::rhoai/predict.png[Interactive Real-Time Image Prediction with Widgets]
153
161
154
-
.. Running the cell in Step 5, produces an output of two images, one of a cat and one of a dog, with their respective predictions labeled as "Cat" and "Dog". as shown in Figure 14 below.
162
+
## Addressing misclassification in your AI Model
163
+
164
+
Misclassification in machine learning models can significantly hinder your model's accuracy and reliability. To combat this, it's crucial to verify dataset balance, align preprocessing methods, and tweak model parameters. These steps are essential for ensuring that your model not only learns well, but also generalizes well, to new, unseen data.
165
+
166
+
. Adjust the Number of epochs to optimize training speed
167
+
+
168
+
Changing the number of *epochs* can help you find the sweet spot where your model learns enough to perform well without overfitting. This is crucial for building a robust model that performs consistently.
155
169
156
-
.. Once the code in the cell is executed in Step 6, a predict button will appear as shown in Figure 15 above. The interactive session will display images with their predicted labels in real-time as the user clicks the "Predict" button. This dynamic interaction helps in understanding how well the model performs across a random set of images and provides insights into potential improvements for model training.
170
+
. Try different values for steps per epoch.
171
+
+
172
+
Modifying *steps_per_epoch* affects how many batches of samples are used in one epoch. This can influence the granularity of the model updates and can help in dealing with imbalanced datasets or overfitting.
173
+
174
+
For example make these modifications in your Notebook or another Python environment as part of *Step 3: Build and Train the Model*:
Copy file name to clipboardExpand all lines: modules/rhoai-deploying.adoc
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@ The {validated-patterns-op} is successfully installed in the relevant namespace.
170
170
To know the cluster group name for the patterns that you want to deploy, check the relevant pattern-specific requirements.
171
171
. Expand the *Git Config* section to reveal the options and enter the required information.
172
172
. Leave *In Cluster Git Server* unchanged.
173
-
.. Change the *Target Repo* URL to your forked repository URL. For example, change `https://github.com/validatedpatterns/<pattern_name>` to `https://github.com/<your-git-username>/<pattern-name>`
173
+
.. Change the *Target Repo* URL to your forked repository URL. For example, change https://github.com/validatedpatterns/<pattern_name> to https://github.com/<your-git-username>/<pattern-name>.
174
174
.. Optional: You might need to change the *Target Revision* field. The default value is `HEAD`. However, you can also provide a value for a branch, tag, or commit that you want to deploy. For example, `v2.1`, `main`, or a branch that you created, `my-branch`.
0 commit comments