teleren/devto huggingface dataset:
What’s the Gini index for machine learning?
Tags: machinelearning, datascience
Published: 2022-12-06 20:54:44

---
title: What’s the Gini index for machine learning?
published: true
date: 2022-12-06 12:12:02 UTC
tags: machinelearning,datascience
canonical_url: https://medium.com/@assitan/whats-the-gini-index-for-machine-learning-a9f4161c7c66
---

The Gini index is used for decision trees. Indeed, how do we know how to separate the root node? Well, there are a couple of methods, and the Gini index is a good one. It allows checking if the leaves containing labels are pure or impure.

That’s right, the more diverse the leaves are, the higher the Gini index is. Why? Because if, let’s say, you want to recommend a product using a decision tree, you want to make sure that the leaves are the most homogeneous possible so that you can be confident in your proposition.

![two decisions trees with colored dots
](https://cdn-images-1.medium.com/max/1024/0*gN1RKg1fspNPQaS2.png)

When we glance, we can think that feature A gives leaves with less diversity, so a better score, because we have 3 purple circles and two red circles. But you know what, let’s be a bit more rigorous.

So to choose which feature we use as the root tree, we calculate the diversity of the leaves.

This is the formula:

![gini index formula commented (dataset, probability rule (complement), sum of classes, the probability that if we pick two random features out of the dataset, they belong to different classes)](https://cdn-images-1.medium.com/max/1024/0*gWHxnK-UUmFy8yY0.png)

Then we compare the mean of each tree and choose the lowest number. Our winner is feature A!

![gini index calculation and the mean](https://cdn-images-1.medium.com/max/1024/0*fk8a2cqsx2qh8AOr.png)

That’s it!

As a beginner in Data Science, are you overwhelmed by everything you need to put in your notebook? When and how to do feature engineering or which metrics use for validation? Then you can buy my Machine Learning Regression Starter Pack for Beginners on [Gumroad](https://assitan.gumroad.com/l/machine-learning-regression-starter-pack-for-beginners/xsmleqj?_gl=1*t8oc8v*_ga*NTM4NzI0NjM3LjE2NzAxNTk5MDE.*_ga_6LJN6D94N6*MTY3MDM0OTg0Ny4yMy4xLjE2NzAzNTAzMDAuMC4wLjA.)! You'll have a -20% discount code: **xsmleqj**

If you want to know more things about Data science and programming with illustrations, follow me on [Twitter](https://twitter.com/Assitan_K).

_Originally published at_ [_https://codistwa.com_](https://codistwa.com/blog/what-s-the-gini-index-for-machine-learning)_._
What got me interested in coding
Published: 2022-12-06 12:00:42

Being a 19 years old student currently pursuing BBA and coming from  a commerce background,it is always been my goal that i need to learn and practise new and useful things which will later help me to compete in this competitive world.
Due to continuous growth of technology i had an idea that only having administrative and managerial knowledge would not be enough.
Therefore i decided to get into coding and to learn concepts of computer programming and i have started my journey with **NEOGCAMP** and what an experience it have been since,
as a complete beginner from learning every tiny bit of coding
to learning some complex functionalities it have been so productive for me,lastly i would add that my coding journey have been fun and will be more fun in future.
What is meant by iOS App Development?
Tags: ios, swift, programming
Published: 2022-12-06 11:57:24

Simply, developing mobile applications that are compatible and accessible through multiple Apple products like iPhone, iPod Touch, and iPad is known as **iOS app development**. Usually, business persons like you choose an iOS app development company to develop their applications. 
But, here they made mistakes, due to the lack of awareness and knowledge of it.

They thought, knowing about the iOS development process is unnecessary to avail of an iOS app from the best development firm. In contrast, such basic knowledge is essential before choosing a company to develop your application to get a better product.

To know more visit: http://bitly.ws/wSEs
The evolution of DevOps
Tags: devops
Published: 2022-12-06 11:53:29

DevOps addressed a weakness in the Agile software development method: Iterative and rapid code development did not always bring about rapid, repeatable implementation of the code.

Alongside the Agile movement to broaden the operational process, IT administrators chafed against frequently lengthy and complicated changes the management process within ITIL. ITIL Framework. ITIL promotes reliable, reliable and secure IT. Agile promotes collaboration and creativity. DevOps resonated with those on both sides. In reality, companies are able to do both ITIL and DevOps especially in the context of cloud-based computing.

The concept of DevOps was made popular with the release in The Phoenix Project in 2013. The Phoenix Project utilizes the fictional tale of The Phoenix Project to demonstrate the common challenges and aid IT managers be aware of the benefits and significance of collaboration, as well as sharing technology.

The early advocates for DevOps included these people:

Since DevOps was becoming more and more common companies have established formalized DevOps strategies. Retailer Target created their DevOps Dojo training strategy for example. Vendors emphasized the tools' capabilities to enable DevOps including chatbots, which collaborate to CI/CD tools that were included in cloud-based solutions. "DevOps engineer" was the new title of the job.

DevOps continues to expand as artificial intelligence develops to aid in everything from the development of code to incident management. AI in DevOps (or AIOps) is a better way to automate , and additionally, speed up wait times, as well as seamless translations of technology to business requirements However, there are still a lot of obstacles before it becomes an actual realisation.

While DevOps is now a common practice there are a few users who can have the capacity to be full DevOps customers. Many use the DevOps method to generate revenue for IT projects and anticipate to see a return on investment with the most modern tools and knowledge. To get the in depth knowledge of DevOps Consider taking [DevOps Course](https://www.edureka.co/devops-certification-training). For many IT-related services within the organization which are relatively established and stable, DevOps does not offer any substantial benefits.
The Broken Window Theory
Tags: discuss, programming, productivity, devjournal
Published: 2022-12-06 11:12:08

The Broken Window Theory suggests that neglected urban alleys encourage crimes. Most dilapidated buildings in urban alleys start with a small neglect which encourages other persons to gradually and unknowingly aid in vandalizing the building because the owners have given the impression that they do not care.

As developers, this theory is applicable to our work. Small neglects that you should have corrected initially encourage further neglects from you and your team members and before you know it, you have a heap of messed up code that should have been avoided.

So as you code, make conscious efforts from the beginning to comment on your code, and use proper naming conventions that make sense. If you find yourself copying a segment of code more than twice, you should consider refactoring that code. Ensure that your classes are not tightly coupled.

What other practices can we adopt to ensure we have quality code? I look forward to getting more suggestions.
Posh terminals!
Tags: terminal, productivity, opensource, discuss
Published: 2022-12-06 11:19:37

## Posh terminals?
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mt4c5afnxnyrqwcf4fgb.png)
### First thing you may notice, is that it isn't your regular boring terminal!
So what is this?<br>
This is oh-my-posh, an open sourced project that basically makes your terminals posh. The best part, is that the community can create new fonts, new looks and styles. It uses NerdFonts, in which you can create one, and you can also create new designs at Oh-my-posh.
<br>
### Some warnings!
Unfortunately, I feel that the documentation is lacking quite a bit. So I had to do some digging to get to this stage. But here are some things you would really want to know
- If you are a windows user, install oh-my-posh for powershell. Command prompt is outdated and has really confusing steps to install, and I didn't even manage to install it in the end
- I felt that installing oh-my-posh from microsoft store was the easiest (lmao, I'm lazy). I don't really know how to install oh-my-posh in other ways

I would probably help rewrite the docs for all the stuff in the not so far future.

### Links!
###### For the fixes, and officials
[Oh-My-Posh Official](https://ohmyposh.dev/)
[Nerd Fonts Official](https://www.nerdfonts.com/)
[Changing fonts fix](https://pureinfotech.com/change-font-face-windows-terminal/)
[Running scripts in Powershell](https://petri.com/how-to-write-and-run-a-powershell-script-file-on-windows-11/)
^ for this link, go to the Running Scripts in Powershell section
[Inspirationnn](https://github.com/2KAbhishek/Posh2K)

### Thanks everyone! (for reading)
Let's see how you think of this! If you have any problems, feel free to comment! Ayo 🤨 !
DPS909 Blog: Release 0.4-Progress
Tags: opensource, beginners
Published: 2022-12-06 11:06:11

Hey everyone, thanks for reading my Blog post.

This week I have worked on the issue which i have described in my previous post [Planning](https://dev.to/anshul137/dps909-blog-release-04-planning-3idk).
I was successfully able to add the [ESlint](https://eslint.org/) in the project.

## General Overview
- Added the [ESlint](https://eslint.org/)
- Added the `.gitignore` in the project
- Fix all the issues generated by [ESlint](https://eslint.org/)
- Created `npm script` to run the ESlint from commnad line
- To run `ESlint` on all the files use  cmd `npm run esLint`

### Linter 
Linters help us spot "silly" mistakes that all programmers make, or help us avoid certain code patterns that often lead to bugs. We want to make it easy for ourselves and new developers joining our project to not introduce bugs or bad code.

## Links 
[Issue-106](https://github.com/Aatmaj-Zephyr/Basic-memory-game/issues/106)
[PR](https://github.com/Aatmaj-Zephyr/Basic-memory-game/pull/107)
Dilemma: should I choose Serverless or Kubernetes?
Tags: cloud, kubernetes, aws, azure
Published: 2022-12-06 11:02:48

The dilemma everyone who wants to develop cloud-native applications faces today is: should I choose Serverless or Kubernetes?

Serverless offers a gentle introduction to the cloud. You need to write your code, send it to the cloud and it will run automagically. The cloud provides all the services you need including automated scaling.

However serverless today means vendor-lockin. You have to adopt and build your applications on top of the services of a single cloud provider. So you are building your house on leased land.

Because vendor lock-in is not acceptable for any forward-looking business, today most of them avoid serverless and go after the most widely used multi-cloud solution: Kubernetes!

However, Kubernetes comes with a significant burden of complexity. It is both bare bone and rich in different plugins, so you have to configure and deploy many services on it. It can take months before it is ready to be used.

In the end, businesses need the productivity of Serveless with the control of environments and deployments granted by Kubernetes. This is the problem that [Nuvolaris](https://nuvolaris.io/) wants to solve.
What is Caching? ELI5
Published: 2022-12-06 11:00:00

Caching is a way of storing information in a computer so that it can be accessed quickly and efficiently. Caching helps to improve the performance and efficiency of a computer, by storing frequently used data in a special location where it can be accessed quickly and easily.

Imagine you are playing a game of hide and seek with your friends. You are all hiding in different places, and one person is trying to find everyone else. Without caching, it would be difficult for the person who is looking for everyone to remember where each person is hiding, and they would need to search all over again each time they want to find someone. But with caching, the person who is looking for everyone can use a special map or memory to remember where each person is hiding, and they can use the map or memory to find each person quickly and easily.

For example, let's say you are playing hide and seek with three friends, and you are using a map to keep track of where each person is hiding. With caching, you can use the following rules to improve the performance and efficiency of the game:

Store frequently used data: The person who is looking for everyone can store the locations of each person on the map, so that they can easily find each person again without needing to search all over again.

Access data quickly: The person who is looking for everyone can use the map to quickly find the location of each person, without needing to search for it again.

Use data efficiently: The person who is looking for everyone can use the map to find each person quickly and efficiently, without wasting time or energy searching for the same location multiple times.

Overall, caching is a helpful way of storing and accessing information in a computer, just like a map or memory helps you to find and remember the locations of things in a game of hide and seek.
JavaScript puzzle oneliner - get unique values from list
Tags: javascript, puzzle, programming
Published: 2022-12-06 10:51:16

Given the following datastructure:

```js
const data = [{ foo: 'bar' }, { bar: 'baz' }, { foo: 'bar'}, { foo: 'baz'}, { foo: 'moo'}, { moo: 'bar'}, { foo: 'moo'}, { baz: 'moo' }, { foo: 'meh'}]
```

Write a function `getFoo` that extracts all **unique** values for `foo`, except `undefined`. The overall code should be **in one line using less than 60 characters**.

Signature: `object[] => string[]`

No further conventions / restrictions. Think out of the box and not in clean code! Esoteric solutions welcomed!
Solving day 06 of Advent of Code 2022 in JavaScript
Tags: challenge, adventofcode, javascript, video
Published: 2022-12-06 10:28:56

---
title: Solving day 06 of Advent of Code 2022 in JavaScript
published: true
description: JavaScript walkthrough of Advent of Code 2022 (day 06)
tags: challenge, AdventOfCode, javascript, video
series: Advent of Code 2022 in Javascript
---

{% youtube uorpQN_cQk4 %}
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial
Published: 2022-12-06 10:28:09

This Edureka Big Data tutorial ( Big Data Hadoop Blog series: https://goo.gl/LFesy8 ) helps you to understand Big Data in detail. This tutorial will be discussing about evolution of Big Data, factors associated with Big Data, different opportunities in Big Data. Further it will discuss about problems associated with Big Data and how Hadoop emerged as a solution.
{% embed https://www.youtube.com/watch?v=zez2Tv-bcXY %}
Flutter WidgetsBindingObserver
Tags: flutter, dart, mobile, observer
Published: 2022-12-06 10:17:49

WidgetsBindingObserver, Flutter uygulamasının durumuyla ilgili bildirimlere kaydolmak için kullanılabilecek soyut(abstract) bir sınıftır. Örneğin, uygulamanın yaşam döngüsü durumu değiştiğinde, sistem yerel ayarı değiştiğinde veya ekran yönü değiştiğinde bildirim almak için bir WidgetsBindingObserver kullanabilirsiniz.

WidgetsBindingObserver, aşağıdaki değişiklikleri dinlemek için çok kullanışlıdır:
- yönlendirme olayları
- cihaz yönü
- platform ayarları (text scale factor, parlaklık, yerel ayar vb.)
- uygulama yaşam döngüsü olayları


```
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('WidgetBindingsObserver Sample')),
        body: const WidgetBindingsObserverSample(),
      ),
    );
  }
}

class WidgetBindingsObserverSample extends StatefulWidget {
  const WidgetBindingsObserverSample({super.key});

  @override
  State<WidgetBindingsObserverSample> createState() =>
      _WidgetBindingsObserverSampleState();
}

class _WidgetBindingsObserverSampleState
    extends State<WidgetBindingsObserverSample> with WidgetsBindingObserver {
  final List<AppLifecycleState> _stateHistoryList = <AppLifecycleState>[];

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addObserver(this);
    if (WidgetsBinding.instance.lifecycleState != null) {
      _stateHistoryList.add(WidgetsBinding.instance.lifecycleState!);
    }
  }

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    setState(() {
      _stateHistoryList.add(state);
    });
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    if (_stateHistoryList.isNotEmpty) {
      return ListView.builder(
        key: const ValueKey<String>('stateHistoryList'),
        itemCount: _stateHistoryList.length,
        itemBuilder: (BuildContext context, int index) {
          return Text('state is: ${_stateHistoryList[index]}');
        },
      );
    }

    return const Center(
        child: Text('There are no AppLifecycleStates to show.'));
  }
}

```


Kaynaklar 💙
[Andrea Bizzotto](https://twitter.com/biz84/status/1498679238370762760)
[api.flutter.dev](https://api.flutter.dev/flutter/widgets/WidgetsBindingObserver-class.html)
How to Master Basics in Git GitHub
Tags: git, github, beginners, tutorial
Published: 2022-12-06 10:16:56

#What is git and GitHub

> Git is open source and free distributed version control system. It can Handle small to complex project very efficiently and speedy

Git is easy to learn and you can checkout how to install in [windows](https://git-scm.com/). In mac git comes with pre installation.



#What is purpose of it and what problem it solves

In Software Industries individual and group of peoples are working on the single codebase for perticuler project. It makes important for developer to be aware of new changes made by rest of the team over the time in an easy to understand and hassle-free manner. where github comes into picture


> github is online container of your code files which contain all your with all **changelogs** 

## Version Control System (VCS)
Git is popular for its version control system. It’s too robust yet simple to track all changes in single code base files with well formatted document.

## Single codebase 
GitHub allow multiple developers to work on the single codebase with variety of options with ease.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ufvxqlxwmk1njp8eliyv.png)



> Take look how GitHub works

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e001cpw0q0kzzvzrdouw.png)





#How to create Repo in github

1. First you need to login into your git account using id password or using any third party login using google,apple

2. click on the new 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gsbtlquxgp2d09l6mpa3.png)

3. Fill you necessary info and click on create respository.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjxwhjfkrvuzau890w1t.png)

4. List of command should we need to know before starting git 

```
echo "# git-commands" >> README.md
git init
git add . || git add filename
git commit -m "commit message"
git branch -M main | master
git remote add origin "github_repo_url"
git push -u origin main | master
```

Phew.. that was a lot
Let's Catch up in part 2
AWS Cloud Practitioner | AWS Certified Cloud Practitioner - Full Course
Published: 2022-12-06 10:11:43

This 'AWS Cloud Practitioner' tutorial video will give you a complete understanding of the AWS Cloud platform and help you prepare for the AWS Certified Cloud Practitioner Examination (a.k.a AWS CCP Examination). This AWS course is intended for individuals who need the knowledge and skills necessary to effectively demonstrate an overall understanding of the AWS Cloud, independent of specific technical roles addressed by other AWS Certifications.

{% embed https://www.youtube.com/watch?v=XjPUyGKRjZs %}
The Observer Effect
Tags: perl, programming, debugging
Published: 2022-12-06 10:09:45

In physics there is the concept of the [observer effect](https://en.wikipedia.org/wiki/Observer_effect_(physics)) whereby the act of observing something alters the measurement. Recently, I've had the pleasure of experiencing that firsthand.

[I blog about it on my website...](http://blog.tbcdevelopmentgroup.com/2022-12-06-the-observer-effect.html)
Electronics And Communication Engineering Projects
Tags: javascript, programming, tutorial, react
Published: 2022-12-06 09:54:27

Takeoff Edu Group provides the most creative conceptions and ideas that can make very effective final year projects for scholars, experimenters, and engineers. So browse through our list of [electronics and communication engineering projects](https://takeoffprojects.com/electronics-and-communication-engineering-projects) and choose the smart final year projects for your requirements. 

These projects are designed to help scholars score well in their final year electronics engineering courses. This runner consists of a list of the rearmost electronics and communication projects ideas that can help scholars in their final year of projects building . Find the best content for your final year electronics project then at our online design depository. View our electronics and communication engineering projects at our site.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vw20xvdrbtqj8vgxueo.png)

Engineering student projects for B.Tech, M.Tech and Diploma final year students. Takeoff Edu Group offers a wide range of projects best for major [electronics and communication engineering projects](https://www.youtube.com/watch?v=emadvM3FJcI
) looking for magnificent final projects at low cost. 

Few of the projects title are:

- Energy Efficient Power and Channel Allocation in Underlay Device to Multi Device Communications
- Resource Allocation for Multiple Device-to-Device Cluster Multicast Communications Underlay Cellular Networks
- Resource Allocation for Outage Probability Minimization in Cognitive Wireless Powered Communication Networks
- D2D Communications Meet Mobile Edge Computing for Enhanced Computation Capacity in Cellular Networks
- Energy-efficient D2D Communication Based Retransmission Scheme for Reliable Multicast in Wireless Cellular Network
How to view images after they uploaded in public/uploads folder with Next.js?
Published: 2022-12-06 09:45:18

Hi, Every One. I have some problem while upload and view images in next.js app.
I upload images to %project%/public/uploads folder
after upload, I can't load uploaded image in next.js app.
when I run the app with dev it works well.
but I run the app with prod it doesn't works.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x5xzvhkxun8mluol9qtb.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gsvacwty7goc5nmzyd4o.png)