Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Olsson committed Nov 15, 2024
1 parent 20b01d2 commit 7bb0788
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 612 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions .Trash-12574/info/test.txt.trashinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Trash Info]
Path=scripts/test.txt
DeletionDate=2024-11-15T11:10:25
255 changes: 13 additions & 242 deletions .ipynb_checkpoints/EDA_code-checkpoint.ipynb

Large diffs are not rendered by default.

255 changes: 13 additions & 242 deletions EDA_code.ipynb

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions apps/.ipynb_checkpoints/lead_gen-checkpoint.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ prediction <- function(inpFeat1, inpFeat2, inpFeat3, inpFeat4, inpFeat5) {
inpFeat3 <- as.numeric(inpFeat3)
inpFeat4 <- as.numeric(inpFeat4)
inpFeat5 <- as.numeric(inpFeat5)


# Payload Design: 'LIMIT_BAL', 'PAY_4', 'PAY_3', 'PAY_2', 'PAY_0', 'DEFAULT'
payload <- toJSON(list(
data = list(
density = sprintf("%.2f", as.numeric(inpFeat1)),
volatile_acidity = sprintf("%.2f", as.numeric(inpFeat2)),
chlorides = sprintf("%.2f", as.numeric(inpFeat3)),
is_red = as.numeric(inpFeat4), # Assuming this is intended to be an integer
alcohol = sprintf("%.2f", as.numeric(inpFeat5)) # Forces float representation
LIMIT_BAL = sprintf("%.2f", as.numeric(inpFeat1)),
PAY_4 = sprintf("%.2f", as.numeric(inpFeat2)),
PAY_3 = sprintf("%.2f", as.numeric(inpFeat3)),
PAY_2 = as.numeric(inpFeat4), # Assuming this is intended to be an integer
PAY_0 = sprintf("%.2f", as.numeric(inpFeat5)) # Forces float representation
DEFAULT = sprintf("%.2f", as.numeric(inpFeat5)) # Forces float representation
)
), auto_unbox = TRUE)

Expand Down
14 changes: 8 additions & 6 deletions apps/lead_gen.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ prediction <- function(inpFeat1, inpFeat2, inpFeat3, inpFeat4, inpFeat5) {
inpFeat3 <- as.numeric(inpFeat3)
inpFeat4 <- as.numeric(inpFeat4)
inpFeat5 <- as.numeric(inpFeat5)


# Payload Design: 'LIMIT_BAL', 'PAY_4', 'PAY_3', 'PAY_2', 'PAY_0', 'DEFAULT'
payload <- toJSON(list(
data = list(
density = sprintf("%.2f", as.numeric(inpFeat1)),
volatile_acidity = sprintf("%.2f", as.numeric(inpFeat2)),
chlorides = sprintf("%.2f", as.numeric(inpFeat3)),
is_red = as.numeric(inpFeat4), # Assuming this is intended to be an integer
alcohol = sprintf("%.2f", as.numeric(inpFeat5)) # Forces float representation
LIMIT_BAL = sprintf("%.2f", as.numeric(inpFeat1)),
PAY_4 = sprintf("%.2f", as.numeric(inpFeat2)),
PAY_3 = sprintf("%.2f", as.numeric(inpFeat3)),
PAY_2 = as.numeric(inpFeat4), # Assuming this is intended to be an integer
PAY_0 = sprintf("%.2f", as.numeric(inpFeat5)) # Forces float representation
DEFAULT = sprintf("%.2f", as.numeric(inpFeat5)) # Forces float representation
)
), auto_unbox = TRUE)

Expand Down
Binary file removed demo.png
Binary file not shown.
116 changes: 0 additions & 116 deletions scripts/.ipynb_checkpoints/test-checkpoint.txt

This file was deleted.

0 comments on commit 7bb0788

Please sign in to comment.