pandas as pd
4numpy as np
3 pandas as pd
6________0______7numpy as np
3pandas as pd
9from
0from
1numpy as np
3 from
3________1______6
import
3from
0import
5numpy as np
3 import
3from
0mlxtend.frequent_patterns
1mlxtend.frequent_patterns
2numpy as np
6
numpy as np
_0
mlxtend.frequent_patterns
5
numpy as np
2numpy as np
3 mlxtend.frequent_patterns
8from
0import
9pandas as pd
0import
2import
3import
4
Langkah 4. Pemisahan data sesuai wilayah transaksi
Python3
import
_5
import
6numpy as np
3 import
8import
9import
5numpy as np
3numpy as np
3apriori, association_rules
3import
5
apriori, association_rules
5apriori, association_rules
6from
0apriori, association_rules
8import
4# Changing the working location to the location of the file
0# Changing the working location to the location of the file
1import
5
apriori, association_rules
5# Changing the working location to the location of the file
4# Changing the working location to the location of the file
5# Changing the working location to the location of the file
6pandas as pd
6numpy as np
6
apriori, association_rules
5cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
0from
0cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
2
numpy as np
_0
cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
4
cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
5numpy as np
3 import
8import
9import
5numpy as np
3numpy as np
3numpy as np
02import
5
apriori, association_rules
5apriori, association_rules
6from
0apriori, association_rules
8import
4# Changing the working location to the location of the file
0# Changing the working location to the location of the file
1import
5
apriori, association_rules
5# Changing the working location to the location of the file
4# Changing the working location to the location of the file
5# Changing the working location to the location of the file
6pandas as pd
6numpy as np
6
apriori, association_rules
5cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
0from
0cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
2
numpy as np
_0
numpy as np
_23
numpy as np
24numpy as np
3 import
8import
9import
5numpy as np
3numpy as np
3numpy as np
31import
5
apriori, association_rules
5apriori, association_rules
6from
0apriori, association_rules
8import
4# Changing the working location to the location of the file
0# Changing the working location to the location of the file
1import
5
apriori, association_rules
5# Changing the working location to the location of the file
4# Changing the working location to the location of the file
5# Changing the working location to the location of the file
6pandas as pd
6numpy as np
6
apriori, association_rules
5cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
0from
0cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
2
numpy as np
_0
numpy as np
52numpy as np
3 import
8import
9import
5numpy as np
3numpy as np
3numpy as np
59import
5
apriori, association_rules
5apriori, association_rules
6from
0apriori, association_rules
8import
4# Changing the working location to the location of the file
0# Changing the working location to the location of the file
1import
5
apriori, association_rules
5# Changing the working location to the location of the file
4# Changing the working location to the location of the file
5# Changing the working location to the location of the file
6pandas as pd
6numpy as np
6
apriori, association_rules
5cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
0from
0cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
2
Langkah 5. Encoding panas Data
Python3
numpy as np
_79
numpy as np
_80
numpy as np
_81 numpy as np
82
numpy as np
83numpy as np
84numpy as np
85numpy as np
3 pandas as pd
6numpy as np
88
numpy as np
89numpy as np
90 pandas as pd
6
numpy as np
83numpy as np
84numpy as np
94numpy as np
3 numpy as np
96numpy as np
88
numpy as np
89numpy as np
90 numpy as np
96
numpy as np
_0
import
_02
import
03numpy as np
3 import
05
import
6numpy as np
3 import
03
numpy as np
_0
import
03numpy as np
3 import
12
cd C:\Users\Dev\Desktop\Kaggle\Apriori Algorithm
5numpy as np
3 import
03
numpy as np
_0
import
_03numpy as np
3 import
19
numpy as np
_24numpy as np
3 import
03
numpy as np
_0
import
03numpy as np
3 import
26
numpy as np
_52numpy as np
3 import
03
Langkah 6. Membangun model dan menganalisis hasilnya
a] Prancis
Python3
import
_30
import
31numpy as np
3 import
33numpy as np
3 import
35import
36numpy as np
3 from
3numpy as np
6
numpy as np
_0
import
_41
import
42numpy as np
3 import
53import
____54apriori, association_rules
8____111_______56____111_______57numpy as np
_____________________________________________________________________apriori, association_rules
___111111111111111111111