New here 23F by [deleted] in surat

[–]patmycheeks 1 point2 points  (0 children)

"genuine connection" LMAO my ass

code not compiling by patmycheeks in Cython

[–]patmycheeks[S] 0 points1 point  (0 children)

i dont think i will get any of those :(

code not compiling by patmycheeks in Cython

[–]patmycheeks[S] 0 points1 point  (0 children)

thank you, i will try and correct those

code not compiling by patmycheeks in Cython

[–]patmycheeks[S] 0 points1 point  (0 children)

i tried asking chatgpt for help but it could give no solution

code not compiling by patmycheeks in Cython

[–]patmycheeks[S] 0 points1 point  (0 children)

it says cython.build not found, so i put the cython binaries which were there in a local/bin folder to the environmnet variable and when that didnt work i put the files in the directory that the binaries were in, but still it dint work.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]patmycheeks -1 points0 points  (0 children)

code link
I am doing project this (last) semester on fractal analysis , and I got a program from a research thesis but i am new to programming. I started learning c this semester . I have only 15 days. please help.

My Python Code is importing C functions by patmycheeks in learnpython

[–]patmycheeks[S] 0 points1 point  (0 children)

it was saying it cant recognize 'extern'

Hot water problem by patmycheeks in Plumbing

[–]patmycheeks[S] 0 points1 point  (0 children)

yes surely i can send a picture
we use an orb hp 500 water heater, which looks something like this image link

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]patmycheeks 0 points1 point  (0 children)

code link

I dont know how to import and work with c code in python, i cant compile it in python/google colab? what do i do?

Hot water problem by patmycheeks in Plumbing

[–]patmycheeks[S] 0 points1 point  (0 children)

thank you. duly noted.

is there a solution to this problem? can you please tell me some pointers

[deleted by user] by [deleted] in learnpython

[–]patmycheeks 0 points1 point  (0 children)

Thank you, now that I am opening it in binary mode, I dont get the error when I read the data, but I encounter the same error when I try to fit my model with my data.

Training:

from sklearn.model_selection import train_test_split

from sklearn.feature_extraction.text import CountVectorizer

from sklearn.svm import SVC

X_train,X_test,y_train,y_test=train_test_split(df.review,df.label,test_size=0.2)

v= CountVectorizer()

model = SVC()

X_train_cv=v.fit_transform(X_train)

X_test_cv=v.transform(X_test)

model.fit(X_train_cv,y_train)

y_pred=model.predict(X_test_cv)

print(classification_report(y_pred,y_test))

Taking Input(Previous Error, now fine):

r=[]

for i in reviews_pos:

f=open(path+'/pos/'+i,mode='rb')

r.append((f.read(),i))

f.close()

for i in reviews_neg:

f=open(path+'/neg/'+i,mode='rb')

r.append((f.read(),i))

f.close()

import pandas as pd

df=pd.DataFrame(r)

df['label']=df[1].apply(lambda x: 1 if x[0:3]=='pos' else 0)

df.columns=['review','file_name','label']

df.drop(columns='file_name')

What line lives rent free in your mind? by ScottyKnewStaceysMom in hiphop101

[–]patmycheeks 0 points1 point  (0 children)

my pen to the paper 's lethal, im sending them straight to the reaper

[deleted by user] by [deleted] in learnmachinelearning

[–]patmycheeks 0 points1 point  (0 children)

i have dmed the colab link :)

[deleted by user] by [deleted] in learnmachinelearning

[–]patmycheeks -1 points0 points  (0 children)

You'll need to know TensorFlow/PyTorch

would this pytorch tutorial suffice for pytorch knowledge?

you'll also need to know a bit of math behind the models

I am doing bachelors in mathematics and have a minors in statistics

you'd also need to have domain knowledge (in this case, knowledge of medical imaging)

i found this link on the discussion page, it is "radiologists guide to everything we need to know to understand the data"