15,190 Topics

Member Avatar for
Member Avatar for jagathg

I want to split my data in 3 partitions training, validation and test: 70% training, 15% validation and 15% test for regression. Python provides a way to do that only for training and testing by cross_validation.train_test_split. Any Ideas?

Member Avatar for rproffitt
0
28
Member Avatar for Reverend Jim

I discovered, after upgrading to Python 3.10, that wxPython no longer worked. Fortunately, a kind soul at wxpython.org suggested I try installing a snapshot build of wxpython via the command pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython So far my existing wxPython scripts run just fine. If you are wondering …

4
2K
Member Avatar for razstec

Im very new to flask and im trying to convert a python tkinter gui app to web. As you can understand i have all the functions made so it would be great if a could call them and pass variables with a single click of a button. for example: get_sub_menu …

0
56
Member Avatar for Nadir_1

He, i am strugeling whit a problem , i wannel call the ok restrasion botten. but it don't show on the screen. of form i gows over this pies of code in the program. btn_ok_REG = Button(root_reg, height=1, width=7, text='Login') btn_ok_REG.pack() btn_ok_REG.place(x= 100 , y=50) #!/urs/bin/evn python from tkinter import …

Member Avatar for woooee
1
56
Member Avatar for ahmed_101

I work on `sql server 2017` I run script depend on `python language v 3.10` . I need to export data to excel fileStudentExport.xlsx already exist, and keep header without change after export. header of excel file StudentExport.xlsx before export data to it as below `StudentId,StudentName` after run script query …

0
35
Member Avatar for William_75

class Namer (object): def __init__(self, arg): self.arg = arg A = Namer("A") B = Namer("B") C = Namer("C") print(A.arg) print(B.arg) print(C.arg) class FrameIt(object): def __init__(self, content): #Namer.__init__(self, arg) #<-----------? #super().__init__(self, arg) #<-----------? self.content = content #super().__init__() #<-------------------? def framed (self): print(self.content) X = FrameIt(A) Y = FrameIt(B) Z = FrameIt(C) …

Member Avatar for Reverend Jim
0
45
Member Avatar for Laura_16

Write a program that prompts the user to enter two integers, one per prompt. The program should then display the result of dividing the first number by the second number, using integer division so that the answer is an integer quotient, and a remainder.

Member Avatar for 65_Sudhir
-1
446
Member Avatar for Linda_19
Member Avatar for jagathg

> import numpy as np > import scipy.io.wavfile > from scikits.talkbox.features import mfcc > sr1,x1=scipy.io.wavfile.read("filename.wav") > ceps1,mspec1,spec1=mfcc(x1) I can obtain MFCC values as above. Now, I have 100 songs with 2 different music genres(electronic,jazz). And, I want to create a dataset with using these songs. I suppose I will use …

0
29
Member Avatar for nunos

Hi all. I have been doing some HTML scraping and today a fellow coder told me about this thing 'DOM' and how much easier it is to use it rather than manipulating strings as I have been doing. He doesn't know much about it, and that's why I came here …

Member Avatar for r8lst
0
802
Member Avatar for Rocky_6

I'm looking for help on CloudFormation Template for Glue Jobs orchestration for below scenario: Suppose I have 10 AWS Glue Jobs, 4 jobs should be executed parallel and 6 jobs should be executed sequentially. If any job failure, send Workflow "Failure" notification along with the failed Glue Jobname. Job1 Job2----job5-->job6-->job7 …

Member Avatar for rproffitt
0
34
Member Avatar for pop_015

Hi i want make an app with tkinter like this ![Untitled.jpg](https://static.daniweb.com/attachments/4/f96dc3f1f7ce846894ea172755387675.jpg) and when someone click on strat its start main.py and in log print consol (log = terminal) i new in python sry for my bad english :)

Member Avatar for Reverend Jim
0
49
Member Avatar for Arush_1
Member Avatar for Roman_16

I'm building a tool in Python for which I need to read out error codes for specific devices using the Server-Eye API. Server-Eye is our monitoring solution where all of our devices and the devices of our customers are registered. The documentation at https://api.server-eye.de/ wasn't very helpful or I'm just …

Member Avatar for rproffitt
0
54
Member Avatar for rexworth123

I’m trying to create a change machine bored and have no programming experience. If anybody has any suggestions I am open to paying someone to help me with this project. I have some logic controlled hoppers and pulse validator‘s 50 MS on 50 MS off. I just need it to …

0
35
Member Avatar for michellepermsm

I can't get the Test code because I have installed the modules with the pip command but when I run the playtest-m connection command I get the error tests\conftest.py:2: in from mflix.factory import create_app mflix\factory.py:6: in from flask_bcrypt import Bcrypt E ModuleNotFoundError: No module named ‘flask_bcrypt’t’

-1
56
Member Avatar for Jon_4

Hi. I'm trying to convert my python file into pseudo code but I have no idea of how pseudo code work. continueAnswer = input("Please enter either continue to carry on with the program or end to stop it: ") continueAnswer=continueAnswer.upper() while continueAnswer == 'C': while True: try: print('') encodeORdecode = …

Member Avatar for Suman_19
0
23K
Member Avatar for Christian_45

Can you help me.. Accepts the grades for the 4 quarters and compute the final grade consider the requirement. The first 3 quarters must be multiplied by 20%, while the last quarter grade is multiplied by 40%.

Member Avatar for Reverend Jim
0
30
Member Avatar for Venkata subbara

I am using colab and below is the code import pandas as pd import numpy as np import os import csv data = pd.read_file(r'C:\Users\sd3394\Test\CAN_all.csv') data.head()

Member Avatar for Reverend Jim
0
77
Member Avatar for Hugh Nelsons

import random money = 0 finmoney = 0 turns = 0 colturns = 0 finturns = colturns + turns print(""" 1 2 3 4 5 6 7 8 9 10 red black every guess = - 1$ every colour = - 5$ every correct = + 10 The goal is …

Member Avatar for JamesCherrill
-1
62
Member Avatar for razstec

Hi, im trying to set a radio and youtube playlist player my code works with radio and single youtube link but with playlist it says that the link is unrecognized, can somoene help? import os from os import path from random import randrange from tkinter.ttk import Combobox import pafy import …

Member Avatar for razstec
0
176
Member Avatar for Anusha_11

Assume the list numbers 1 has 100 elements, and numbers 2 is an empty list. Write code that copies the values in numbers 1 to numbers 2. I would like to have a program of this question from python, chapter 7 - list and tuples

Member Avatar for Reverend Jim
0
117
Member Avatar for gneisler

I can not get this program to list all of the contact names, it just list the first one. ##!/usr/bin/evn python3 # # Contact Manager Program # import csv FILENAME = "contacts.csv" def write_contacts(contacts): with open (FILENAME, "w", newline="") as file: writer = csv.writer(file) writer.writerows(contacts) def read_contacts(): contacts = [] …

Member Avatar for Anthony_49
0
3K
Member Avatar for ____

hi there i have a python http post request with no request but theres the code: requests.post("https://api.i66v1xg2.org/v3/moderate/+" + userid + "/") i dont know how to make it in java and in okhttp3 help pls thanks

Member Avatar for JamesCherrill
0
105
Member Avatar for Napoleon_1
Member Avatar for Crona

I have a homework assignment that im not really sure how to approach as of right now, I've done some research but. I have not found really anything that would pertain to what I'm doing. Any help would be appreciated <3 . So far this is what I have: /****************************************************************************** …

Member Avatar for DGPickett
0
286
Member Avatar for archiejude04

Ive created a snake game with the help of a tutorial and i want to create a pause function for my program however, every other tutorial and website i looked at hasn't really helped, can someone help me figure out how to pause my game?

Member Avatar for Reverend Jim
0
368
Member Avatar for Youcef_4

Hello, I am trying to install paramiko on a linux instance running on docker. However, I keep getting the same error: Failed building wheel for cffi

Member Avatar for rproffitt
0
44
Member Avatar for Daniel_167

hello, i have problem to write a generator function to slice a great list to pieces in python 3. /because of RAM/. is it possible?

Member Avatar for Reverend Jim
0
34
Member Avatar for Somil_1

Can u help me I am making a game in pygsme pygame in python so when I run the program it appears a blank black screen instead of the image that I hve upload in pygame to make game so actuaaly when I run the program it appears blank black …

Member Avatar for Schol-R-LEA
0
78

The End.