Month: May 2021

Kotlin example for Beginners – Kotlin Program to Multiply to Matrix Using Multi-dimensional Arrays

Kotlin Program to Multiply to Matrix Using Multi-dimensional Arrays In this program, you’ll learn to multiply two matrices using multi-dimensional arrays in Kotlin. For matrix multiplication to take place, the number of columns of first matrix must be equal to the number of rows of second matrix. In our example, i.e. c1 = r2 Also, …

Kotlin example for Beginners – Kotlin Program to Calculate Standard Deviation

Kotlin Program to Calculate Standard Deviation In this program, you’ll learn to calculate the standard deviation using a function in Kotlin. This program calculates the standard deviation of a individual series using arrays. Visit this page to learn about Standard Deviation. To calculate the standard deviation, calculateSD() function is created. The array containing 10 elements is passed to …

Kotlin example for Beginners – Kotlin Program to Calculate Average Using Arrays

Kotlin Program to Calculate Average Using Arrays In this program, you’ll learn to calculate the average of the given arrays in Kotlin. Example: Program to Calculate Average Using Arrays fun main(args: Array<String>) { val numArray = doubleArrayOf(45.3, 67.5, -45.6, 20.34, 33.0, 45.6) var sum = 0.0 for (num in numArray) { sum += num } …

Kotlin example for Beginners – Kotlin Program to calculate the power using recursion

Kotlin Program to calculate the power using recursion In this program, you’ll learn to calculate the power of a number using a recursive function in Kotlin. Example: Program to calculate power using recursion fun main(args: Array<String>) { val base = 3 val powerRaised = 4 val result = power(base, powerRaised) println(“$base^$powerRaised = $result”) } fun …

How to setup a text classification model in Keras using CNN

(How to setup a text classification model in Keras using CNN) In this Learn through Codes example, How to setup a text classification model in Keras using CNN.  How_to_setup_a_text_classification_model_in_Keras_using_CNN   Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & …

How to setup an object classification model in Keras using CNN

(How to setup an object classification model in Keras using CNN) In this Learn through Codes example, How to setup an object classification model in Keras using CNN.  How_to_setup_an_object_classification_model_in_Keras_using_CNN   Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & …

How to setup MLP and CNN for MNIST dataset in Keras

(How to setup MLP and CNN for MNIST dataset in Keras) In this Learn through Codes example, How to setup MLP and CNN for MNIST dataset in Keras.  How_to_setup_MLP_and_CNN_for_MNIST_dataset_in_Keras   Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: Tabular Text & …

How to setup Time Based Learning Rate Decay in Keras

(How to setup Time Based Learning Rate Decay in Keras) In this Learn through Codes example, How to setup Time Based Learning Rate Decay in Keras.  How_to_setup_Learning_Rate_Decay_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 …

How to setup Dropout Regularization in Keras

(How to setup Dropout Regularization in Keras) In this Learn through Codes example, How to setup Dropout Regularization in Keras.  Dropout_Regularization_on_the_Hidden_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 Series …

Kotlin example for Beginners – Kotlin Program to Reverse a Sentence Using Recursion

Kotlin Program to Reverse a Sentence Using Recursion In this program, you’ll learn to reverse a given sentence using a recursive loop in Kotlin. Example: Reverse a Sentence Using Recursion fun main(args: Array<String>) { val sentence = “Go work” val reversed = reverse(sentence) println(“The reversed sentence is: $reversed”) } fun reverse(sentence: String): String { if …