diff --git a/pages/Dashboard_Pimpinan.py b/pages/Dashboard_Pimpinan.py
index c408317..d5733eb 100644
--- a/pages/Dashboard_Pimpinan.py
+++ b/pages/Dashboard_Pimpinan.py
@@ -72,7 +72,7 @@ def navbar():
- Halaman Prediksi
+ Halaman Dashboard
""", unsafe_allow_html=True)
diff --git a/pages/Form_Keluhan.py b/pages/Form_Keluhan.py
index 2184fae..6d84e37 100644
--- a/pages/Form_Keluhan.py
+++ b/pages/Form_Keluhan.py
@@ -112,7 +112,7 @@ def navbar():
border-radius: 5px;
padding: 10px;
cursor: pointer;
- margin-top: 8px;
+ margin-top: 6px !important;
width: 100%;
}}
.stButton > button:hover {{
@@ -131,7 +131,7 @@ def navbar():
- Halaman Prediksi
+ Form Keluhan
""", unsafe_allow_html=True)
@@ -209,25 +209,6 @@ def menu():
div[data-testid="column"]:nth-child(3) button:hover {
background-color: #2C3E50 !important; /* Warna biru lebih gelap saat hover */
}
-
- .stButton > button {
- background-color: #264CBE;
- color: white;
- font-family: 'Inter', sans-serif;
- font-size: 16px;
- font-weight: 600;
- border: none;
- border-radius: 5px;
- padding: 10px;
- cursor: pointer;
- margin-top: 20px;
- width: 100%;
- }
-
- .stButton > button:hover {
- background-color: #ffffff;
- color: #264CBE;
- }
""",
unsafe_allow_html=True
diff --git a/pages/Form_Kepuasan.py b/pages/Form_Kepuasan.py
index a7e9029..835ef3e 100644
--- a/pages/Form_Kepuasan.py
+++ b/pages/Form_Kepuasan.py
@@ -50,6 +50,7 @@ def navbar():
font-size: 16px;
font-weight: 600;
border: none;
+ margin-top: 6px !important;
border-radius: 5px;
padding: 10px;
cursor: pointer;
@@ -72,7 +73,7 @@ def navbar():
- Halaman Prediksi
+ Form Kepuasan Kerja
""", unsafe_allow_html=True)
@@ -150,25 +151,6 @@ def menu():
div[data-testid="column"]:nth-child(3) button:hover {
background-color: #2C3E50 !important; /* Warna biru lebih gelap saat hover */
}
-
- .stButton > button {
- background-color: #264CBE;
- color: white;
- font-family: 'Inter', sans-serif;
- font-size: 16px;
- font-weight: 600;
- border: none;
- border-radius: 5px;
- padding: 10px;
- cursor: pointer;
- margin-top: 20px;
- width: 100%;
- }
-
- .stButton > button:hover {
- background-color: #ffffff;
- color: #264CBE;
- }
""",
unsafe_allow_html=True
diff --git a/pages/Form_Penilaian.py b/pages/Form_Penilaian.py
index 09e6d8f..dfbb938 100644
--- a/pages/Form_Penilaian.py
+++ b/pages/Form_Penilaian.py
@@ -55,7 +55,7 @@ def navbar():
border-radius: 5px;
padding: 10px;
cursor: pointer;
- margin-top: 8px;
+ margin-top: 8px !important;
width: 100%;
}}
.stButton > button:hover {{
@@ -74,7 +74,7 @@ def navbar():
- Halaman Prediksi
+ Form Penilaian Kinerja Karyawan
""", unsafe_allow_html=True)
@@ -152,25 +152,6 @@ def menu():
div[data-testid="column"]:nth-child(3) button:hover {
background-color: #2C3E50 !important; /* Warna biru lebih gelap saat hover */
}
-
- .stButton > button {
- background-color: #264CBE;
- color: white;
- font-family: 'Inter', sans-serif;
- font-size: 16px;
- font-weight: 600;
- border: none;
- border-radius: 5px;
- padding: 10px;
- cursor: pointer;
- margin-top: 20px;
- width: 100%;
- }
-
- .stButton > button:hover {
- background-color: #ffffff;
- color: #264CBE;
- }
""",
unsafe_allow_html=True
diff --git a/pages/Laporan.py b/pages/Laporan.py
index b9fc81c..518cbf7 100644
--- a/pages/Laporan.py
+++ b/pages/Laporan.py
@@ -51,7 +51,9 @@ def get_shap_top_features():
conn = connect_to_db()
if conn:
try:
- query = "SELECT employee_id as ID_Karyawan, shap_values FROM shap_pred_result"
+ query = """SELECT a.employee_id as ID_Karyawan, a.shap_values, b.hasil_prediksi_klasifikasi as Hasil_Prediksi_Retensi,
+ b.hasil_prediksi_regresi as Hasil_Prediksi_Lama_Kerja
+ FROM shap_pred_result a inner join history_prediction b on a.employee_id = b.employee_id"""
df = pd.read_sql(query, conn)
# Ekstraksi dan format ulang shap_values
@@ -75,7 +77,9 @@ def get_shap_top_features():
# Buat format tabel baru
formatted_row = {
- "ID_Karyawan": employee_id
+ "ID_Karyawan": employee_id,
+ "Hasil_Prediksi_Retensi": row["Hasil_Prediksi_Retensi"], # Tambahkan ini!
+ "Hasil_Prediksi_Lama_Kerja": row["Hasil_Prediksi_Lama_Kerja"], # Tambahkan ini!
}
for i, (feature, value) in enumerate(top_features, start=1):
formatted_row[f"Nama_Fitur_{i}"] = feature
@@ -355,7 +359,7 @@ def show_report():
# Ambil data dari tabel shap_pred_result
df = get_shap_top_features()
-
+
filter_retensi = st.selectbox("Pilih Kategori Retensi/Tidak", ["Semua", "Retensi", "Tidak Retensi"])
if filter_retensi != "Semua":
diff --git a/pages/__pycache__/Dashboard.cpython-39.pyc b/pages/__pycache__/Dashboard.cpython-39.pyc
index aa2e39d..1d8d851 100644
Binary files a/pages/__pycache__/Dashboard.cpython-39.pyc and b/pages/__pycache__/Dashboard.cpython-39.pyc differ
diff --git a/pages/__pycache__/Dashboard_Pimpinan.cpython-39.pyc b/pages/__pycache__/Dashboard_Pimpinan.cpython-39.pyc
index 31840ee..de5a485 100644
Binary files a/pages/__pycache__/Dashboard_Pimpinan.cpython-39.pyc and b/pages/__pycache__/Dashboard_Pimpinan.cpython-39.pyc differ
diff --git a/pages/__pycache__/Form_Keluhan.cpython-39.pyc b/pages/__pycache__/Form_Keluhan.cpython-39.pyc
index 66080fb..61b2824 100644
Binary files a/pages/__pycache__/Form_Keluhan.cpython-39.pyc and b/pages/__pycache__/Form_Keluhan.cpython-39.pyc differ
diff --git a/pages/__pycache__/Form_Kepuasan.cpython-39.pyc b/pages/__pycache__/Form_Kepuasan.cpython-39.pyc
index 6fdee8f..a2455ca 100644
Binary files a/pages/__pycache__/Form_Kepuasan.cpython-39.pyc and b/pages/__pycache__/Form_Kepuasan.cpython-39.pyc differ
diff --git a/pages/__pycache__/Form_Penilaian.cpython-39.pyc b/pages/__pycache__/Form_Penilaian.cpython-39.pyc
index d23f2da..f7e91f6 100644
Binary files a/pages/__pycache__/Form_Penilaian.cpython-39.pyc and b/pages/__pycache__/Form_Penilaian.cpython-39.pyc differ
diff --git a/pages/__pycache__/Laporan.cpython-39.pyc b/pages/__pycache__/Laporan.cpython-39.pyc
index 025b767..d359763 100644
Binary files a/pages/__pycache__/Laporan.cpython-39.pyc and b/pages/__pycache__/Laporan.cpython-39.pyc differ