by Dewi Ayu Paraswati

The description from the data set is A manager at the Bank is disturbed with more and more customers leaving their credit card services. They would really appreciate if one could predict for them who is gonna get churned so they can proactively go to the customer to provide them better services and turn customers decisions in the opposite direction.

I got this dataset from a link of website : https://www.kaggle.com/sakshigoyal7/credit-card-customers?select=BankChurners.csv . I have been using this for a while to get datasets and accordingly work on them to produce fruitful results. …


By Dewi Ayu Paraswati

Description

This report descriptio of Breast Cancer diagnosis using Machine Learning Algorithms. I invistigated 4 Algorithms :
- Logistic Regression
- Decission Tree
- Random Forest
- Suport Vector Machine

The dataset used in this report is Breast Cancer Wisconsin hosted in Kaggle. Data Set can be download in :
here. or you can access the link (https://www.kaggle.com/buddhiniw/breast-cancer-prediction)

Report OutLine :

  1. Data extraction
  2. Explonatory Data Analysis
  3. Data Preparation
  4. Modelling
  5. Evaluation
  6. Recommendation

1. Data Extraction

This code is for data extration from link dataset . I used the function of csv for extraction the data.

library(readr)
bcw_df <- read.csv("data/data.csv")

To see the number of…


Halo Guys!

Pusing bukan menentukan jurusan kuliah yang akan kalian pilih? Apalagi jurusan kamu bertentangan dengan Orang Tua. Nah sekarang Olle akan memberikan Tips dan Trik cara membicarakan Jurusan yang kamu mau ke orang tua :

  1. Jelaskan secara detail jurusan yang kamu pilih

Langkah pertama ini menjadi langkah yang terpenting buat kamu. Pastikan kamu melakuakan riset secara detail dari manapun dan jelaskan ke orang tua kamu tentang gimana prospek karir ke depannya.

2. Beranilah bertanggung jawab

Kamu harus buktikan ke orangtua kamu bahwa kamu sungguh-sungguh untuk mengambil jurusan itu dan berkomitmen sampai nanti kamu lulus kuliah dengan jurusan yang kamu…


Hai guys…!!

Olle ada tips and trik nih untuk kalian yang sedang stress menjelang menghadapi ujian SBMPTN. Yuk ikutin tips tips dari Olle .

Sebelum SBMPTN, persiapkan materi yang akan diujikan. Kebanyakan dari kalian biasanya sampai melupakan waktu untuk beristirahat dan kemudian stress. Nah, kini olle akan berbagi tips untuk kalian supaya tidak stress menjelang SBMPTN.

  1. Olahraga rutin agar tetap fit

Rutin berolah raga menurut penelitian dapat meringankan beban pikiran kita dan meredam stress kita. Dengan begitu kita menjadi lebih rileks dan tidak mudah cemas. Olahraga teratur juga akan meningkatkan yang tentunya membuatmu semaiin prima dalam mengerjakan Ujian SBMPTN.

2…


Hai, teman teman..

Kamu merasa belajar kamu kurang efektif?? Atau kamu merasa kamu cepat bosan pada setiap kali belajar?? Yuk baca tips dari aku yukk, untuk menghilangkan rasa kurang efektif dan membosankan.

  1. Atur Ruang Belajar

Atur posisi ruang belajar senyaman kamu, karena dengan ruangan baik akan membuatmu semakin bersemangat.

2. Ciptakan suasana kondusif

Ciptakan lah suasana kondusif saat kamu belajar, agar pelajaran yang kamu pelajari masuk dan nempel ke dalam otak.

3. Belajar dengan Rutin

Belajarlah dengan rutin dengan membuat jadwal dan lakukan dengan rutin. Karena dengan belajar rutin kamu bisa mengingat semua mata pelajaran baru maupun pelajaran yang lama.


Task 1: Initialize data only if the database is empty

1.1 Add a method to the DAO to get a single word

  • In the WordDao interface, add a method to get any word:
@Query("SELECT * from word_table LIMIT 1")
Word[] getAnyWord();

1.2 Update the initialization method to check whether data exists

PopulateDBAsync is an inner class in WordRoomDatbase. In PopulateDBAsync, update the doInBackground() method to check whether the database has any words before initializing the data:

@Override
protected Void doInBackground(final Void... params) {

// If we have no words, then create the initial list of words
if (mDao.getAnyWord().length < 1) {
for (int i = 0; i <= words.length - 1; i++) {
Word word = new Word(words[i]);
mDao.insert(word);
}
}
return null;
}

Task 1: Create the RoomWordsSample app

1.1 Create an app with one Activity

Open Android Studio and create an app. On the setup screens, do the following:

  • Name the app RoomWordsSample.
  • If you see check boxes for Include Kotlin support and Include C++ support, uncheck both boxes.
  • Select only the Phone & Tablet form factor, and set the minimum SDK to API 14 or higher.
  • Select the Basic Activity.

Task 1. Add Search

1.1. Add an Options Menu with Search item

Use the OptionsMenuSample code from your previous practicals if you need an example of how to do this.

  • In your project, create an Android Resource directory and call it menu with “menu” as the resource type (res > menu).
  • Add a main_menu.xml menu resource file to res > menu.
  • Create a menu with one item Search. Reference the code snippet for values.
<menu
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app = "http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.android.example.wordlistsqlsearchable.MainActivity">

<item
android:id="@+id/action_search"
android:title="Search..."
android:orderInCategory="1"
app:showAsAction="never" />
</menu>
  • In MainAcvitiy, inflate the menu by overriding onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

A SQLite database is a good storage solution when you have structured data that you need to store persistently and access, search, and change frequently.

What you should already KNOW

For this practical you should be familiar with:

  • Creating, building, and running apps in Android Studio.
  • Displaying data in a RecyclerView.
  • Using adapters as intermediaries between data and views.
  • Adding onClick event handlers to views and dynamically creating onClick handlers.
  • Starting a second activity and returning data from a it.
  • Passing data between activities using intent extras.
  • Using an EditText view to get data entered by the user.

What you will LEARN

In this practical you will learn to:


Task 1: Add a switch setting to an app

In this task, you do the following:

  • Create a new project based on the Basic Activity template, which provides an options menu.
  • Add a toggle switch (SwitchPreference) with attributes in a preference XML file.
  • Add an activity for settings and a fragment for a specific setting. To maintain compatibility with AppCompatActivity, you use PreferenceFragmentCompat rather than PreferenceFragment. You also add the android.support.v7.preference library.
  • Connect the Settings item in the options menu to the settings activity.

1.1 Create the project and add the xml directory and resource file

  • In Android Studio, create a new project with the following parameters:
  • Run the app, and tap the overflow icon in the app bar to see…

dewi ayu paraswati

learn by your self :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store