Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Home/Comments/Page 4
  1. Asked: January 23, 2024In: Computer Science

    TensorFlow-Advanced-Techniques-Specialization Week2

    I'M ADMIN
    Best Answer
    I'M ADMIN
    Added an answer on January 25, 2024 at 2:44 pm

    1. Question 1 One of the ways of declaring a loss function is to import its object. Is the following code correct for using a loss object? True False Answer: False   2. Question 2 It is possible to add parameters to the object call when using the loss object. True False Answer: True  Read more

    1.

    Question 1

    One of the ways of declaring a loss function is to import its object. Is the following code correct for using a loss object?

    TensorFlow-Advanced-Techniques-Specialization Week2

    True

    False

    Answer: False

     

    2.

    Question 2

    It is possible to add parameters to the object call when using the loss object.

    TensorFlow-Advanced-Techniques-Specialization Week2

    True

    False

    Answer: True

     

     

    3.

    Question 3

    You learned that you can do hyperparameter tuning within custom-built loss functions by creating a wrapper function around the loss function with hyperparameters defined as its parameter. What is the purpose of creating a wrapper function around the original loss function?

    TensorFlow-Advanced-Techniques-Specialization Week2

     

    No particular reason, it just looks neater this way.

    The loss ( model.compile(…, loss = ) ) expects a function that is only a wrapper function to the loss function itself.

    That’s one way of doing it. We can also do the same by passing y_true, y_pred and threshold as parameters to the loss function itself.

    The loss ( model.compile(…, loss = ) ) expects a function with two parameters, y_true and y_pred, so it is not possible to pass a 3rd parameter (threshold) to the loss function itself. This can be achieved by creating a wrapper function around the original loss function.

     

    Answer: The loss ( model.compile(…, loss = ) ) expects a function with two parameters, y_true and y_pred, so it is not possible to pass a 3rd parameter (threshold) to the loss function itself. This can be achieved by creating a wrapper function around the original loss function.

     

    4.

    Question 4

    One other way of implementing a custom loss function is by creating a class with two function definitions, init and call.

    TensorFlow-Advanced-Techniques-Specialization Week2

    Which of the following is correct?

     

    We pass y_true and y_pred to the init function, the hyperparameter (threshold) to the call function.

    We pass the hyperparameter (threshold) , y_true and y_pred to the call function, and the init function returns the call function.

    We pass the hyperparameter (threshold) to the init function, y_true and y_pred to the call function.

    We pass the hyperparameter (threshold) , y_true and y_pred to the init function, and the call function returns the init function.

    Answer:We pass the hyperparameter (threshold) to the init function, y_true and y_pred to the call function.

     

    5.

    Question 5

    The formula for the contrastive loss, the function that is used in the siamese network for calculating image similarity, is defined as following:

    TensorFlow-Advanced-Techniques-Specialization Week2

    Check all that are true:

    If the euclidean distance between the pair of images is low then it means the images are similar.

    Y is the tensor of details about image similarities.

    Ds are 1 if images are similar, 0 if they are not.

    Margin is a constant that we use to enforce a maximum distance between the two images in order to consider them similar or different from one another.

     

    Answer:

    • Y is the tensor of details about image similarities.
    • If the euclidean distance between the pair of images is low then it means the images are similar.
    See less
      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  2. Asked: January 23, 2024In: Computer Science

    TensorFlow Advanced Techniques Specialization Week 1

    I'M ADMIN
    Best Answer
    I'M ADMIN
    Added an answer on January 25, 2024 at 2:40 pm

    Question 1 Which of these steps are needed for building a model with the Functional API? (Select three from the list below) Explicitly define an input layer to the model. Define the input layer of the model using any Keras layer class (e.g., Flatten(), Dense(), …) Define disconnected intermediate laRead more

    Question 1

    Which of these steps are needed for building a model with the Functional API? (Select three from the list below)

    Explicitly define an input layer to the model.

    Define the input layer of the model using any Keras layer class (e.g., Flatten(), Dense(), …)

    Define disconnected intermediate layers of the model.

    Connect each layer using python functional syntax.

    Define the model using the input and output layers.

    Define the model using only the output layer(s).

    Answer: 1, 4, 5(Answer)

     

     

    Question 2

    TensorFlow Advanced Techniques Specialization Week 1

    Is the following code correct for building a model with the Sequential API?

    False

    True

    Answer:False

     

     

    3.

    Question 3

    Only a single input layer can be defined for a functional model.

    False

    True

    Answer: False

     

    4.

    Question 4

    What are Branch Models ?

    A model architecture with a single recurring path.

    A model architecture where you can split the model into different paths, and cannot merge them later.

    A model architecture with non-linear topology, shared layers, and even multiple inputs or outputs.

    A model architecture with linear stack of layers.

    Answer:A model architecture with non-linear topology, shared layers, and even multiple inputs or outputs.

     

    5.

    Question 5

    One of the advantages of the Functional API is the option to build branched models with multiple outputs, where different loss functions can be implemented for each output.

    True

    False

    Answer: True

     

     

    6.

    Question 6

    A siamese network architecture has:

    2 inputs, 2 outputs

    1 input, 1 output

    2 inputs, 1 output

    1 input, 2 outputs

    Answer: 2 inputs, 1 output

     

     

    7.

    Question 7

    What is the output of each twin network inside a Siamese Network architecture?

    A softmax probability

    An output vector

    Binary value, 1 or 0

    A number

    Answer:An output vector

     

    8.

    Question 8

    What is the purpose of using a custom contrastive loss function for a siamese model?

    A custom loss function is required for using the RMSprop() optimizer.

    As a custom built function, it provides better results and it is faster to run.

    A custom built function is required because it is not possible to use a built-in loss function with the Lambda layer.

    It is a custom built function that can calculate the loss on similarity comparison between two items.

     

    Answer: It is a custom built function that can calculate the loss on similarity comparison between two items.

     

    See less
      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  3. Asked: January 24, 2024In: Other

    What are the Best lawyers in the world?

    ADMIN 2
    ADMIN 2
    Added an answer on January 24, 2024 at 4:38 am
    This answer was edited.

    Tips to become a successful lawyer:   1. Get Educated: Start with a bachelor's degree in a related field. Then, go to a good law school for a Juris Doctor (JD).   2. Choose a Good Law School: Pick a reputable law school with a strong program. Doing well in law school is super important to build a soRead more

    Tips to become a successful lawyer:  

    1. Get Educated: Start with a bachelor’s degree in a related field. Then, go to a good law school for a Juris Doctor (JD).  

    2. Choose a Good Law School: Pick a reputable law school with a strong program. Doing well in law school is super important to build a solid foundation.  

    3. Hands-On Experience: Do internships or clerkships at law firms, government places, or legal groups while in law school. It will help you get practical experience. 

    4. Network: Connect with people in the legal field. Go to legal events, join bar associations, and find mentors to help you in this journey.  

    5. Specialize: Think about focusing on a specific area of law. This will make you an expert and boosts your reputation.  

    6. Pass the Bar Exam: Successfully clear the bar exam where you want to practice law.  

    7. Establish a Positive Reputation: Be known for being honest, skilled, and dedicated. Do great work, follow ethical practices, and make your clients happy.  

    8. Keep Learning: Be updated on legal stuff by taking more classes and courses regularly.  

    9. Communication Skills: Work on being an excellent communicator, both in writing and talking. It’s super important in the legal world.  

    10. Advocacy: Learn to strongly represent clients, whether in court or during negotiations.  

    Stay dedicated to learning and growing professionally. That’s how you become one of the best lawyers in the world.

    See less
      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  4. Asked: January 23, 2024In: Python

    Which of the following best defines a variable in programming?

    ADMIN 2
    Best Answer
    ADMIN 2
    Added an answer on January 23, 2024 at 3:33 am

    The best definition of a variable in programming is: A named storage location that can hold varying data during program execution.   What is variable in programming language? In computer programming, a variable is like a nickname for a place in the computer's memory where we can store informatiRead more

    The best definition of a variable in programming is: A named storage location that can hold varying data during program execution.

     

    What is variable in programming language?

    In computer programming, a variable is like a nickname for a place in the computer’s memory where we can store information. We give it a name because it can stand for different values, and we can change what’s inside it while the program is running.

    See less
      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  5. Asked: December 31, 2023In: Computer Science

    Select all of the things you can access from the Discover section of the Welcome screen (Select all that apply.)

    I'M ADMIN
    I'M ADMIN
    Added an answer on December 31, 2023 at 9:42 pm

    Answer: 1.Go to a “how-to” video

    Answer:

    1.Go to a “how-to” video

    See less
      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  6. Asked: December 31, 2023In: Computer Science

    Versions of Tableau are forwards-compatible, but they are not backwards-compatible

    I'M ADMIN
    I'M ADMIN
    Added an answer on December 31, 2023 at 9:39 pm

    Answer: False

    Answer:

    False

    See less
      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
1 2 3 4 5 6 … 194

Sidebar

store ads

Stats

  • Questions 1k
  • Answers 1k
  • Posts 149
  • Best Answers 89
  • This Free AI Tool Translates Entire Books in Minute !
  • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
  • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
  • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
  • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

Explore

  • Recent Questions
  • Questions For You
  • Answers With Time
  • Most Visited
  • New Questions
  • Recent Questions With Time

Footer

SIKSHAPATH

Helpful Links

  • Contact
  • Disclaimer
  • Privacy Policy Notice
  • TERMS OF USE
  • FAQs
  • Refund/Cancellation Policy
  • Delivery Policy for Sikshapath

Follow Us

© 2021-24 Sikshapath. All Rights Reserved