SmartPredict
  • Documentation
  • OVERVIEW
    • Presentation
      • Key features
      • Who may benefit from its use
      • The SmartPredict Graphical User Interface (GUI)
        • The SmartPredict Modules
        • Focus on the Notebooks
        • Practical shortcuts
    • Prerequisites
  • Getting started
    • Getting started (Part1) : Iris classification project
      • Project description
      • Step 1. Create the project
      • Step 2. Upload the dataset
      • Step 3. Preprocess the dataset
      • Step 4. Build the flowchart
        • Set up the flowchart
        • Configure the modules
      • Step 5. Run the build
      • Step 6. Deploy the project
      • Step 7. Make inferences with our model
      • Conclusion
  • Getting started (Part 2): Predicting the passengers' survival in the Titanic shipwreck
    • Project description
    • Step 1. Create the project
    • Step 2. Upload the dataset
    • Step 3. Preprocess the dataset
    • Step 4. Build the flowchart
    • Step 5. Run the build
    • Step 6. Deploy the pipeline
    • Step 7. Make inferences with our pipeline
  • MODULE REFERENCE
    • CORE MODULES
      • Introduction
      • Basic Operations
        • Item Saver
      • Web Services
        • Web Service IN and OUT
      • Data retrieval
        • Data fetcher
        • Data frame loader/converter
        • Image data loader
      • Data preprocessing
        • Introduction
        • Array Reshaper
        • Generic Data Preprocessor
        • Missing data handler
        • Normalizer
        • One Hot Encoder
        • Ordinal Encoder
      • Data selection
        • Features selector
        • Generic data splitter
        • Labeled data splitter
      • Training and Prediction
        • Predictor DL models
        • Predictor ML models
        • Predictor ML models (Probabilistic models)
        • Trainer ML models
        • Trainer/Evaluator DL models
      • Evaluation and fine-tuning
        • Cross Validator for ML
        • Evaluator for ML models
      • Machine Learning algorithms
        • ML modules in SmartPredict
        • Decision Tree Regressor
        • KNeighbors Classifier
        • KNeighbors Regressors
        • Linear Regressor
        • Logistic Regressor
        • MLP Regressor
        • Naive Bayes Classifier
        • Random Forest Classifier
        • Random Forest Regressor
        • Support Vector Classifier
        • Support Vector Regressor
        • XGBoost Classifier
        • XGBoost Regressor
      • Deep learning algorithms
        • Dense Neural Network
        • Recurrent Neural Networks
      • Computer Vision
        • Convolutional Recurrent Networks
        • Fully Convolutional Neural Networks
        • Face detector
        • Image IO
        • Image matcher
        • Yolo
      • Natural Language Processing
        • Introduction
        • Text cleaner
        • Text vectorizer
      • Times Series processing
        • TS features selector
      • TensorFlow API
        • LSTM Layer
        • Dense Layer
      • Helpers
        • Data/Object Logger
        • Object Selector (5 ports)
      • Conclusion
  • CUSTOM MODULES
    • Function
    • Class
    • Use cases
Powered by GitBook
On this page

Was this helpful?

  1. Getting started
  2. Getting started (Part1) : Iris classification project

Step 7. Make inferences with our model

So far, we have been working on the SmartPredict platform. From now on, we are going to make an inference with our model with the help of an external software.

PreviousStep 6. Deploy the projectNextConclusion

Last updated 5 years ago

Was this helpful?

After having deployed our project, we should have received the REST API Web Service URL to use along with an access token . Such pieces of information can be copied and pasted by clicking on the copy icon. Those are the compulsory data we need to submit in order to call the AI model's Web Service.

A dialog box notifies that they have been generated successfully. Just click on OK and proceed by switching to the Monitor tab from where you can always retrieve it later.

Using Postman to make our first inference

That is it. We have already reached the last stage of our modeling project which is the testing part.

For testing the code generated by SmartPredict through Postman, proceed just like for any automated test.

Collect the active URL by copying it from the link provided by SmartPredict then paste it into Postman.

2. Afterwards, click on ‘New collection’ from the collection menu,. Let us for instance name it : SmartPredict_Iris collection. Click on create.

A project folder named “SmartPredict_Iris” has just appeared on the right . Click on the menu (the three dots). A sub-menu spreads out . Click on ‘Add request’.

3. Fulfill the blank fields as described: Set for request name : ‘Test Iris classification ’. Click on the button ‘Save to (the project folder)’. here ‘SmartPredict_Iris’ Get back to the project folder >> Click on it , then on the freshly created Test Iris classification request file.

4. In Postman’s workspace, change GET to POST by selecting it in the drop-down list.

  • In the Headers part :

  1. Complete the field Key with: Content-Type

  2. Complete the field Value with: application/json

> Notice the tick box being checked

  • In Body :

  1. Among the radio buttons, choose ‘raw’.

  2. From the drop down list, choose the ‘Json’ format.

{
   "input":{
      "petal.length":4.5,
      "petal.width":5.4,
      "sepal.length":0.0,
      "sepal.width":0.8
   },
   "access_token":""
}

Paste the access token copied before into the field intended for it within Postman.

Running the test, we obtain the output ‘Setosa’ for the test set. This means that the model works well.

In fact, just like any program , our model needs to be checked in order to evaluate if it duly functions as expected. For the purpose, we are going to use the software which is a popular choice among the coders' community.

Let us begin by downloading it from its official link :

To learn how to perform API testing using Postman, check this .

Complete the installation by following every step. Once the software installed, open 's GUI.

The result of the classification of the iris flower is 'Setosa'.
‘Postman’
https://www.getpostman.com/downloads/
interesting tutorial
Postman
Click on the 'Copy' icon to copy the URL address into clipboard.
Postman's GUI
Adding a request.
Saving the request .