- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 32004 Articles for Programming

Updated on 23-Mar-2023 16:21:37
Introduction Document Retrieval in Machine Learning is part of a larger aspect known as Information Retrieval, where a given query by the user, the system tries to find relevant documents to the search query as well as rank them in order of relevance or match. They are different ways of Document retrieval, two popular ones are − Boolean Model Vector Space Model Let us have a brief understanding of each of the above methods. Boolean Model It is a set-based retrieval model.The user query is in boolean form. Queries are joined using AND, OR, NOT, etc. A document ... Read More 
Updated on 23-Mar-2023 16:17:07
Introduction The graph is a very useful data structure that can represent co-interactions. These co-interactions can be encoded by neural networks as embeddings to be used in different ML Algorithms. This is where the DeepWalk algorithm shines. In this article, we are going to explore the DeepWalk algorithm with a Word2Vec example. Let us learn more about Graph Networks on which the core of this algorithm is based. The Graph If we consider a particular ecosystem, a graph generally represents the interaction between two or more entities. A Graph Network has two objects – node or vertex and edge. ... Read More 
Updated on 23-Mar-2023 15:18:07
Pandas is an extremely popular data handling library used frequently for data manipulation and analysis. The Pandas library offers powerful features for analysis such as grouping to analyze various samples having some common features. In this article, we are going to learn how to add these summary statistics obtained through groups of samples as a new column in our existing Pandas dataframes. NOTE − The code in this article was run on a jupyter notebook. Let's begin by importing Pandas. import pandas as pd ExampleFollowing is the sample d ataset we will work on. It has 3 columns storing ... Read More 
Updated on 23-Mar-2023 15:13:30
Pandas is a super popular data handling and manipulation library in Python which is frequently used in data analysis and data pre-processing. The Pandas library features a powerful data structure called the Pandas dataframe, which is used to store any kind of two-dimensional data. In this article we will learn about various ways to add a header row (or simply column names) to a Pandas dataframe. NOTE − The code in this article was tested on a jupyter notebook. We will see how to add header rows in 5 different ways − Adding header rows when creating a ... Read More 
Updated on 23-Mar-2023 12:42:43
There are different ways of adding the numbers in Java. The numbers to be added can be given as input at runtime or can be put directly inside the program. However, it is difficult to add numbers in this way if the list of numbers is too big. Sometimes, the data to be added is given in an excel spreadsheet/ google sheet. So, the easy way is to save the excel spreadsheet /google sheet into a file with extension CSV (Comma Separated Values) and then CSV file’s column can be selected for adding up the values together using Java program. ... Read More 
Updated on 23-Mar-2023 12:37:46
There are different ways of viewing web pages in a browser using URL. Here, the methods of doing the same are specified using the Java code. The given URL is first entered by using the Java program. Then the related Webpage is opened in the default browser. This article uses three different approaches for opening the webpage as specified by the URL in the browser through the Java code. Multiple Approaches For these programs, the displaying of the given URL is done using two different approaches. By Using desktop.browse(uri) for the object belonging to Desktop class. By Using javafx ... Read More 
Updated on 23-Mar-2023 12:34:37
Here, two different approaches are used for making this design using Java. In both approaches, the size of the Swastika is decided by the user. The user provides the input for the table or frame size. The Swastika is often used as an example to learn rows, column and tabular layout concepts using different languages including java. Swastika is a religious symbol of Hinduism, Buddhism and Jainism. Making Swastika using Java. Here, three different approaches are used for making this design using Java. Multiple Approaches The given problem would be solved by three distinct approaches. By using two ... Read More 
Updated on 23-Mar-2023 12:26:24
This article uses various approaches for selecting the commands inserted in the opened command window through the Java code. The command window is opened by using ‘cmd’. Here, the methods of doing the same are specified using Java code. The Command window is first opened using the Java program. It is opened as a child process. If the java program is run in an existing cmd window, another one is opened as a new process. Further, different types of commands are inserted and executed in that opened command window via the java code. These programs may not work in ... Read More 
Updated on 23-Mar-2023 12:06:38
This article includes the way to read text files line by line. Here, the three different methods are explained with examples. Storing a file in text format is important especially when data from one structured /unstructured form is transferred to another form. Therefore, basic file transfer systems integrate the txt file reading and writing process as their application components. Therefore, how to use text file reading and writing methods is also important for making the parsers. Multiple Approaches The given problem statement is solved in three different approaches By using the BufferedReader class By using the FileInputStream By using ... Read More 
Updated on 23-Mar-2023 12:04:33
In this article, Array elements are selected for printing the elements by using their index value. The array is the common way to store similar types of items together in java. The individual values as well as all elements of the array can be printed easily. For printing, for all elements of an array a "for loop" is commonly used which selects the index from 0 up to the length of the array. Following are the few examples of integer and string type array Int type array example int [] array1 = {11, 22, 32, 42, -52, 62, -72, 82, ... Read More Advertisements