Skip to content

Commit 03d39b8

Browse files
Finished training and testing the model
1 parent ec824d7 commit 03d39b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@
6767
transaction3 = np.array([543678.31, 1.0, 0.0, 510025.5])
6868

6969
# Create a new transaction
70-
70+
transaction4 = np.array([600000.31, 0.0, 1.0, 68999999.0])
7171

7272
# Combine new transactions into a single array
73-
73+
sample_transactions = np.stack((transaction1,transaction2,transaction3,transaction4))
7474

7575
# Normalize the new transactions
76-
76+
sample_transactions = ssc.transform(sample_transactions)
7777

7878
# Predict fraud on the new transactions
79-
80-
79+
print(lr.predict(sample_transactions))
80+
print(lr.predict_proba(sample_transactions))
8181
# Show probabilities on the new transactions

0 commit comments

Comments
 (0)