Set Opacity of a Text Canvas Using Fabric.js

Gungi Mahesh
Updated on 24-Feb-2023 13:00:07

345 Views

The fabric.Text object of Fabric.JS is used to opacity of a canvas-type text. Text class of Fabric.js provides the text abstraction by using the fabric.Text object, which allows us to work with text in an object-oriented way. Comparing to the canvas class, the Text class provides the rich functionality. The text object contains the different properties, but to set the opacity of a text canvas can be done using the opacity property i.e., opacity. The opacity property of a Fabric.js Text object specifies the opacity of the text characters. It can be used to set the opacity for a text. ... Read More

Set Horizontal Skew of a Canvas Circle Using Fabric.js

Gungi Mahesh
Updated on 24-Feb-2023 12:58:15

176 Views

The Fabric.js Circle class is used to provide the circle shape by using the fabric.Circle object. The Circle object is used to provide the circle shape, and the circle is movable, and it can be stretched according to the requirements. For the stroke, color, width, height, and fill color the Circle is customizable. Comparing to the canvas class the Circle class provides the rich functionality. The Circle class contains the different properties, but to set the horizontal skew of a canvas circle can be done using skewX property. The skewX property of a Fabric.js class specifies the horizontal skew of ... Read More

Read Inputs as Integers in Python

Alekhya Nagulavancha
Updated on 24-Feb-2023 12:25:34

23K+ Views

In Python, there are two ways to provide input information to a program. One in which we directly assign input objects to object references/variables; and the other in which the program takes user input dynamically (during runtime). Python 2.x versions use raw_input() function to take user input dynamically; whereas, Python 3.x versions use input() function. The input() function only takes input values in the form of strings, by default. In this article, we will learn how to read the input as “Numbers” in Python 3.x using input() function. Reading Inputs as Numbers Python, like any other programming languages, accepts two ... Read More

Check If a Directory Exists in Python

Alekhya Nagulavancha
Updated on 24-Feb-2023 12:13:45

7K+ Views

Directory creation is a common task for computer users. You might need to create a directory to store some files, or to place some new files inside an existing directory. In this article, you will learn how to find if a directory already exists in Python or not. A directory is a file system structure used by operating systems and software applications to organize files. It can also refer to a list of files and folders, like the current folder in Windows Explorer. Sometimes there arises a need to check whether a certain directory exists in a system or not; ... Read More

Print Full Path of Current File's Directory in Python

Alekhya Nagulavancha
Updated on 24-Feb-2023 12:09:56

19K+ Views

The path of a current file is defined with the help of directory hierarchy; and it contains the backtracked path from the current file to the root directory this file is present in. For instance, consider a file “my_file” belongs to a directory “my_directory”, the path for this file is defined as given below ./my_directory/my_file The directory, sub-directory and the file are all separated using the “/” separator in the path. Therefore, to get current file's full path, you can use the os.path.abspath() function. If you want only the directory path, you can call os.path.dirname() method. Using os.path.abspath() Method ... Read More

Best Evaluation Metrics for Linear Regression

Parth Shukla
Updated on 24-Feb-2023 10:42:21

474 Views

Introduction In machine learning, linear regression is one of the best algorithms used for linear types of data and it returns very accurate predictions the same. Although after training a model with any algorithm it is necessary to check the performance of the algorithm to get an idea about how the model is behaving and what things are needed to improve the model. In this article, we will discuss the various evaluation metrics and the best metric to evaluate the linear regression algorithm. Why Find the Best Evaluation Metrics? There are many evaluation metrics available for regression type of algorithm ... Read More

Ways to Detect Anomalies in a Given Dataset

Parth Shukla
Updated on 24-Feb-2023 10:40:32

269 Views

Introduction Anomalies are values or data observations that are very different from the other observations in the existing datasets., Detecting and processing the anomalies become essential while building a machine learning model, as the quality of the data that is to be passed to the model should be fair enough to rely on. It is believed that high-quality datasets can give accurate and reliable information and result son even very poor-performing algorithms, and if the quality of the dataset is itself very poor, then there is very less probability of achieving a high-performing model. This article will discuss the outliers, ... Read More

Model Validation in Machine Learning

Parth Shukla
Updated on 24-Feb-2023 10:35:53

3K+ Views

Introduction Model validation is a technique where we try to validate the model that has been built by gathering, preprocessing, and feeding appropriate data to the machine learning algorithms. We can not directly feed the data to the model, train it and deploy it. It is essential to validate the performance or results of a model to check whether a model is performing as per our expectations or not. There are multiple model validation techniques that are used to evaluate and validate the model according to the different types of model and their behaviors. In this article, we will discuss ... Read More

Maximum Likelihood in Machine Learning

Parth Shukla
Updated on 24-Feb-2023 10:34:43

20K+ Views

Introduction Maximum likelihood is an approach commonly used for such density estimation problems, in which a likelihood function is defined to get the probabilities of the distributed data. It is imperative to study and understand the concept of maximum likelihood as it is one of the primary and core concepts essential for learning other advanced machine learning and deep learning techniques and algorithms. In this article, we will discuss the likelihood function, the core idea behind that, and how it works with code examples. This will help one to understand the concept better and apply the same when needed. Let ... Read More

Hyperparameter Tuning in Machine Learning

Parth Shukla
Updated on 24-Feb-2023 10:30:35

825 Views

Introduction Hyperparameter tuning in machine learning is a technique where we tune or change the default parameters of the existing model or algorithm to achieve higher accuracies and better performance. Sometimes when we use the default parameters of the algorithms, it does not suit the existing data as the data can vary according to the problem statement. In that case, the hyperparameter tuning becomes an essential part of the model building to enhance the model's performance. This article will discuss the algorithm's hyperparameter tuning, advantages, and other related things. This will help one understand the concept of hyperparameter tuning and ... Read More

Advertisements