Rohan Singh

Rohan Singh

144 Articles Published

Articles by Rohan Singh

Page 15 of 15

Difference Between Dataset.from_tensors and Dataset.from_tensor_slices

Rohan Singh
Rohan Singh
Updated on 06-Jul-2023 1K+ Views

Dataset.from_tensors and Dataset.from_tensor_slices are methods in the TensorFlow library that are used to create datasets. Dataset.from_tensor creates a dataset from a single tensor whereas Dataset.from_tensor_slices creates data set by slicing a tensor along the first dimension. In this article, we will understand the difference between the two methods and how they are used in different use cases. from_tensor from_tensor_slices Creates a dataset from a single tensor Creates a dataset by slicing a tensor along the first dimension Useful for small datasets that can fit in memory Useful for large datasets that ...

Read More

Difference between BeautifulSoup and Scrapy Crawler

Rohan Singh
Rohan Singh
Updated on 06-Jul-2023 275 Views

Beautiful Soup and Scrapy Crawler are used for doing web scraping in Python. Both of these tools have the same use case but have different functionalities. Web scraping is useful in data collection and analysis in fields like research, marketing, and business intelligence. In this article, we will understand the difference between Beautiful Soup and Scrapy Crawler and how they are used in web scraping. Feature Beautiful Soup Scrapy Parsing Used for parsing HTML and XML documents Uses a combination of parsing and crawling to extract data from websites. Ease of Use Simple ...

Read More

Adam Optimizer in Tensorflow

Rohan Singh
Rohan Singh
Updated on 06-Jul-2023 2K+ Views

Adam optimizer in Tensorflow is an algorithm used in deep learning models. Optimization algorithms are used in deep learning models to minimize the loss function and improve performance. Adam stands for Adaptive Moment Estimation, which is a stochastic gradient descent algorithm. It combines the advantages of both RMSprop and AdaGrad algorithms to achieve a better optimization result. In this article, we will understand the Adam Optimizer in Tensorflow and how it works. Working principle of Adam Optimizer Adam optimizer is an iterative optimization algorithm. It uses first and second-order moments of the gradient to adaptively adjust the learning rate ...

Read More

Accessing Web Resources using Factory Method Design Pattern in Python

Rohan Singh
Rohan Singh
Updated on 06-Jul-2023 247 Views

The Factory Method Design Pattern of Python is a creational pattern that provides an interface for creating objects in a superclass but allows subclasses to alter the type of objects that will be created. It is used to define a generic interface for creating objects while allowing subclasses to decide which class to instantiate. In this article, we will explore how to use the Factory Method Design Pattern to access web resources in Python. Accessing Web Resources Python provides several libraries for accessing web resources such as HTTP requests, urllib, and Requests. These libraries allow us to send HTTP requests ...

Read More
Showing 141–144 of 144 articles
« Prev 1 11 12 13 14 15 Next »
Advertisements