Day: May 4, 2021

Kotlin tutorial for Beginners – Kotlin Companion Objects

Hits: 4 Kotlin Companion Objects In this article, you will learn to create and use companion objects in your Kotlin program with the help of examples. Before taking about companion objects, let’s take an example to access members of a class. class Person{ fun callMe() = println(“I’m called.”) } fun main(args: Array<String>) { val p1 …

Kotlin tutorial for Beginners – Kotlin Object Declarations and Expressions

Hits: 1 Kotlin Object Declarations and Expressions In this article, you will learn about object declarations (singletons) and object expressions with the help of examples. Object Declarations Singleton is an object-oriented pattern where a class can have only one instance (object). For example, you are working an application having SQL database backend. You want to …

Kotlin tutorial for Beginners – Kotlin Interfaces

Hits: 1 Kotlin Interfaces In this article, you will learn about interfaces and how to implement it in Kotlin with the help of examples. Kotlin interfaces are similar to interfaces in Java 8. They can contain definitions of abstract methods as well as implementations of non-abstract methods. However, they cannot contain any state. Meaning, interface …

How to setup Dropout Regularization in Keras

Hits: 5 (How to setup Dropout Regularization in Keras) In this Learn through Codes example, How to setup Dropout Regularization in Keras.  Dropout_Regularization_on_the_Visible_Layer Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & Image Data Analytics as well as Time …

Kotlin tutorial for Beginners – Kotlin Visibility Modifiers

Hits: 1 Kotlin Visibility Modifiers In this article, you will learn about all 4 visibility modifiers in Kotlin and how they work in different scenarios. Visibility modifiers are keywords that set the visibility (accessibility) of classes, objects, interface, constructors, functions, properties and their setters. (You cannot set visibility modifier of getters as they always take the …

Kotlin tutorial for Beginners – Kotlin Constructors

Hits: 2 Kotlin Constructors In this article, you will learn about constructors in Kotlin (both primary and secondary constructors) as well as initializer blocks with the help of examples. A constructor is a concise way to initialize class properties. It is a special member function that is called when an object is instantiated (created). However, how they …

Kotlin tutorial for Beginners – Kotlin Class and Objects

Hits: 1 Kotlin Class and Objects In this article, you’ll be introduced to Object-oriented programming in Kotlin. You’ll learn what a class is, how to create objects and use it in your program. Kotlin supports both functional and object-oriented programming. Kotlin supports features such as higher-order functions, function types and lambdas which makes it a great choice for working in …

Kotlin tutorial for Beginners – Kotlin Recursion (Recursive Function) and Tail Recursion

Hits: 3 Kotlin Recursion (Recursive Function) and Tail Recursion In this article, you will learn to create recursive functions; a function that calls itself. Also, you will learn about tail recursive function. A function that calls itself is known as recursive function. And, this technique is known as recursion. A physical world example would be to place …

Kotlin tutorial for Beginners – Kotlin Default and Named Arguments

Hits: 3 Kotlin Default and Named Arguments In this article, you will learn about default and named arguments with the help of examples. Kotlin Default Argument In Kotlin, you can provide default values to parameters in function definition. If the function is called with arguments passed, those arguments are used as parameters. However, if the …

How to setup Dropout Regularization in Keras

Hits: 4 (How to setup Dropout Regularization in Keras) In this Learn through Codes example, How to setup Dropout Regularization in Keras in Python.  How_to_setup_Dropout_Regularization_in_Keras Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & Image Data Analytics as well …