Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
What is time series with respect to Machine Learning?
Time series, as the name suggests, is data that contains certain time periods or time stamps. It contains observations over certain time period. This kind of data tells us about how variables change over time based on various factors. Time series analysing and forecasting can be used to predict data with respect to some future time.Univariate time series contains values taken with respect to a single variable at certain time instances over a period of time. A multivariate time series contains values taken with respect to multiple variables at same periodic instances of time.Time series consists of 4 components that ...
Read MoreHow can scikit-learn package be used to transform an array of specific size to a different size?
Scikit−learn, commonly known as sklearn is a library in Python that is used for the purpose of implementing machine learning algorithms. It is an open-source library hence it can be used free of cost. It is powerful and robust, since it provides a wide variety of tools to perform statistical modelling. This includes classification, regression, clustering, dimensionality reduction, and much more with the help of a powerful, and stable interface in Python. The library is built on Numpy, SciPy and Matplotlib libraries.It can be installed using the ‘pip’ command as shown below −pip install scikit−learnThis library focuses on data modelling. ...
Read MoreHow can an input data array be transformed to a new data array using the process of streamlining using scikit-learn pipelining tools?
Scikit−learn, commonly known as sklearn is a library in Python that is used for the purpose of implementing machine learning algorithms. It is an open−source library hence it can be used free of cost.It is powerful and robust, since it provides a wide variety of tools to perform statistical modelling. This includes classification, regression, clustering, dimensionality reduction, and much more with the help of a powerful, and stable interface in Python.This library is built on Numpy, SciPy and Matplotlib libraries.It can be installed using the ‘pip’ command as shown below −pip install scikit−learnThis library focuses on data modelling.The streamlining operation ...
Read MoreHow to change the color of the PowerShell ISE editor using command?
To change the color of the ISE Editor, we need to use $psISE cmdlet which is only available for the ISE editor.Now in the ISE editor, we have many colors some are visible (ScriptPane color, Console Color, etc) and some appear while executing a script (Error, Warning, Verbose). These properties are as below.ErrorForegroundColor : #FFFF9494 ErrorBackgroundColor : #00FFFFFF WarningForegroundColor : #FFFF8C00 WarningBackgroundColor : #00FFFFFF ...
Read MoreHow to change PowerShell ISE font Size using command?
To change the font size of the PowerShell ISE editor using the command, we need to use the cmdlet $PSISE which is only loaded inside the PowerShell ISE console. You won’t find it in the main PowerShell console.Once you run this command, there are various properties available. For example, PS C:\> $psISE CurrentPowerShellTab : Microsoft.PowerShell.Host.ISE.PowerShellTab CurrentFile : Microsoft.PowerShell.Host.ISE.ISEFile CurrentVisibleHorizontalTool : CurrentVisibleVerticalTool : Options : Microsoft.PowerShell.Host.ISE.ISEOptions PowerShellTabs : {PowerShell 1}You need to select the Options Property and then need to ...
Read MoreHow to traceroute using PowerShell?
Traceroute is the way to determine the hopes that the packets are passing through when requested. In the command prompt, that utility is called the tracert and we can also use that utility to trace the network packets. For example, PS C:\> tracert google.com Tracing route to google.com [216.58.203.142] over a maximum of 30 hops: 1 1 ms 1 ms 1 ms 192.168.0.1 2 2 ms 2 ms 2 ms 45.114.51.246 3 8 ms 4 ms 4 ms 103.210.200.141 4 21 ms * * 10.10.125.29 5 ...
Read MoreHow to format string using PowerShell?
To format a string in a PowerShell we can use various methods. First using the simple expanding string method.PS C:\> $str = 'PowerShell' PS C:\> Write-Output "Hello $str !!!!" Hello PowerShell !!!!Second, using the format method. In this method, we will use the Format function of the String .NET class.PS C:\> $str = "PowerShell" PS C:\> [String]::Format("Hello $str...!!!") Hello PowerShell...!!!The third method using the Format operator. We can use the number format here as shown below.PS C:\> $str = 'PowerShell' PS C:\> "Hello {0}" -f $str Hello PowerShellIf we have multiple variables then we need to increase the numbers inside ...
Read MoreHow to check the website status code using PowerShell?
Website status code is meant to be the status of the website as if the website request from the client is successful or not if the website is available or any error on the webpage which is causing the handshake failed with the client.There are various website status codes. Please refer to the below link for them.https://en.wikipedia.org/wiki/List_of_HTTP_status_codesTo retrieve the status using PowerShell, we will first connect the webpage using the Invoke-WebRequest command and then we can use the property StatusCode. For example, $req = Invoke-WebRequest -uri "https://theautomationcode.com" $reqOutputStatusCode : 200 StatusDescription : OK Content : ...
Read MoreHow to get website links using Invoke-WebRequest in PowerShell?
To get the links present on the website using PowerShell, we can first retrieve the data from the webpage using the Invoke-WebRequest cmdlet.$req = Invoke-WebRequest -uri "https://theautomationcode.com" $reqOutputTo retrieve only links we can use that property and there you will also find some sub-properties like InnerHTML, Innertext, href, etc as shown in the output.$req = Invoke-WebRequest -uri "https://theautomationcode.com" $req.LinksOutputinnerHTML : Scripts innerText : Scripts outerHTML : Scripts outerText : Scripts tagName : A href : https://theautomationcode.com/scripts/ We need only links so we will use the href property.$req.Links | Select -ExpandProperty hrefOutputhttps://theautomationcode.com/2020/11/ https://theautomationcode.com/author/chiragce17/ ...
Read MoreHow to download images using Invoke-Webrequest in PowerShell?
To download the images from the webpage using the Invoke-WebRequest command, we can use the images property from the result to retrieve the images URL, and later we can use the method to download them at the specific location. Consider we have the URI: https://theautomationcode.com to retrieve the images.Once you run the below command, you can see the Images property there.Invoke-WebRequest -Uri "https://theautomationcode.com/feed/"To retrieves the images URL, $req = Invoke-WebRequest -Uri "https://theautomationcode.com/feed/" $req.Images | Select -ExpandProperty srcOutputhttps://i1.wp.com/theautomationcode.com/wp-content/uploads/2020/11/image-9.png?resize=178%2C60&ssl=1 https://i0.wp.com/theautomationcode.com/wp-content/uploads/2020/11/image-10.png?resize=640%2C68&ssl=1All the above URLs point to the images, so we can download that.$wc = New-Object System.Net.WebClient $req = Invoke-WebRequest -Uri "https://theautomationcode.com/feed/" $images = ...
Read More