-
Notifications
You must be signed in to change notification settings - Fork 1
ad_clicks: python file #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,157 @@ | |||
|
|
|||
| # https://7b7qhlx1yh.execute-api.us-east-1.amazonaws.com/Predict/cf09696a-e6f6-482a-ac75-fd1ad61772a4 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this
| import PySimpleGUI as sg | ||
|
|
||
|
|
||
| # Sample format of data expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this
| # "Insulin":0,"BMI":33.6,"DiabetesPedigreeFunction":0.627,"Age":50} | ||
|
|
||
| def mystr(inp_val, inp_feature): | ||
| tmp_val = inp_val |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for type to be str and add quotes around it.
Also name the function to be wrap_string_in_quotes
| predictions (list): Contains the list of predictions | ||
| """ | ||
| values_age = values['Age'] | ||
| #print(values_age) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the print
| [sg.Text('Area Income'), sg.Input(61833.9, key='Area Income')], | ||
| [sg.Text('Daily Internet Usage'), sg.Input(256.09, key='Daily Internet Usage')], | ||
| [sg.Text('Ad Topic Line'), sg.Input('Cloned 5thgeneration orchestration', key='Ad Topic Line')], | ||
| # [sg.Text('Ad Topic Line'), sg.Input('', key='Ad Topic Line')], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line.
| if event is None or event == 'Exit': | ||
| break | ||
|
|
||
| print("from GUI:", values) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this print value
| if(feature == 'Age'): | ||
| body = body + '"' + feature + '"' + ':' + str(values_split[a]) + ',' | ||
| else: | ||
| #body = body + '"' + feature + '"' + ':' + str(values[feature]) + ',' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line.
| } | ||
|
|
||
| public static void main(String[] args) { | ||
| AdClicksProject1 clicks = new DiabetesProject1(0, 0, 400, 400); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change DiabeteProject1 to AdClicksProject1
Text Edit
No description provided.