Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 14 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:37
    @bjorno43 banned @real-action
  • Feb 01 00:26
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Oct 02 2019 18:47
    sarony removed as member
  • Oct 02 2019 17:45
    erictleung commented #82
  • Aug 15 2019 11:17
    FrednandFuria opened #82
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • May 10 2019 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 2019 19:48
    @mstellaluna banned @zhonghuacx
  • Apr 25 2019 17:07
    @mstellaluna banned @cmal
  • Jan 08 2019 22:07
    @mstellaluna banned @gautam1858
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Dec 15 2018 23:34
    @mstellaluna banned @Julianna7x_gitlab
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:13
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
habibaatify
@habibatify_twitter
topic.PNG
topic2.PNG
topic3.PNG
Ghost
@ghost~5e5ac431d73408ce4fdb29e3

Dear experts i have a problem, I have a file that contain both numerics,strings and separator like .....how to import it using numpy.loadtxt

while loading

import numpy as np
np.loadtxt('file',dtype=str)

i am getting error like Convert each value according to its column and store

ValueError: Wrong number of columns at line 3

data file

10.0        c1
80.0        c2
...............
10.0        mr
2.0         no
Dr. Muhammad Anjum
@anjumuaf123_twitter
hi sir how to ignore negative floating values in a data set ?
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 thanks sir, let me see
image.png
@alexn11 my data is like this sir . If i apply condition df1=A["Tmin"] > 0,0 like this , then I got only true or false , i am interested true values only . i mean positive values sir, Please
alexn11
@alexn11
you use A["Tmin"] > 0 to index the data: A[A["Tmin"]>0]
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 sir, thanks , let me try
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 Sir, if I want to add Tmax also in your advised code then how . I mean like this A[A["Tmax","Tmin"]>0] ..but it gives error
@alexn11 sir, in this form A[A["Tmin"]>0] it works , but if I want A[A["Tmax","Tmin"]>0] ..but it gives error
alexn11
@alexn11
Use the operator & this works for array of booean
A['Tmin'>0] & A['tmax'>0]
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 ok sir, let me try again
alexn11
@alexn11
or just chain them
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 sir, how to chain, I apologized please could not understand your point plz
alexn11
@alexn11
something like A[A['Tmin'>0]][A['tmax'>0]] but its clearer if you use the &
A[A['Tmin'>0] & A['tmax'>0]]
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 i got error
image.png
alexn11
@alexn11
just use the &
Dr. Muhammad Anjum
@anjumuaf123_twitter
ok
alexn11
@alexn11
you need to convert the value to float first
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 sir, all values are in floating like 4.0
alexn11
@alexn11
A[A.Tmin>0 & A.Tmax > 0]
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 sir, I just use & and got error TypeError: '>' not supported between instances of 'str' and 'int'
alexn11
@alexn11
^
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 ok sir, try me
@alexn11 TypeError: Cannot perform 'rand_' with a dtyped [float64] array and scalar of type [bool]
alexn11
@alexn11
A[(A.Tmin>0) & (A.Tmax > 0)]
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 Sir, now it works .Great Sir, Sir, can I add you in priv chat if you have no problem ?
alexn11
@alexn11
sure
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 sir, you are great. Actually I am beginner , if I here send too much screen shots to ask questions , people becomes angry . so therefore! Thanks a lot . Now i can ask any question from you in that priv chat . Thanks a lotttttttttttt.
Bala venkatesh
@balavenkatesh3322

checkout computer vision pre-trained model

https://github.com/balavenkatesh3322/CV-pretrained-model

Yosi
@yosiasz
Greetings, what do you recommend I read for machine translation learning best practices. Training models etc. Thanks
Rahul Bhatia
@rbhatia46

Cracking an interview can be a difficult task, especially in these times when there is a cut throat competition in the job market, after having interviewed heavily for Machine Learning and Data Science roles at big companies and startups, I have compiled a detailed list of Data Science Interview Resources, which I can assure will prepare you very well for an upcoming Data Science/ML Interview. And I update the list frequently with hand-picked quality resources, which you can use to prepare for your interviews! Best of luck!

https://github.com/rbhatia46/Data-Science-Interview-Resources

Yosi
@yosiasz
👍🏾
Dr. Muhammad Anjum
@anjumuaf123_twitter
@alexn11 hi sir
alexn11
@alexn11
@anjumuaf123_twitter Hi sorry i'm quite busy at the moment, I cannot really answer your questions. I hope you have made some progress.
Yosi
@yosiasz
discord datascience best channel! i am out!
Eric Leung
@erictleung
Even if you don't understand methylation (I don't), this recent Twitter thread is a nice lesson in data leakage when training your machine learning models https://twitter.com/jmschreiber91/status/1291161574393221123 It contains screenshots of Python code as well so you can play around with it yourself.
hassanalt
@hassanalt
Hello, can someone here explain a mathematical notation for me
Eric Leung
@erictleung
@hassanalt hey there! What kind of math notation are you looking for? As a first look, I'd search through this Wikipedia page or this GitHub page for how to decipher/translate some math notation to plain words
hassanalt
@hassanalt
@erictleung I was wondering what this meant o(O(f(n))) = o(f(n))
Eric Leung
@erictleung
@hassanalt depends on the context. The O(f(n)) on the left might be referring to Big-O notation, but I'm not sure if you're working in that space of work. But even so within Big-O notation, I'm not sure what the lowercase O is referring to. What area of work is this equation showing up in?
hassanalt
@hassanalt
I simply saw it in my lecture and the professor did not quite explain it.
Was in a list of assertions
Eric Leung
@erictleung
@hassanalt mmm okay. Well, the little "o" may mean little o notation, which is the loose upper bound of how fast an algorithm can go https://www.geeksforgeeks.org/analysis-of-algorithems-little-o-and-little-omega-notations/ So it appears that the general runtime of f(n) (O(f(n))) is equivalent to f(n) itself. This might make sense in the right context, but right here, it kinda doesn't mean much. I hope the notation explanation can lead you to the right direction. You can read more about time complexities here https://en.wikipedia.org/wiki/Time_complexity#Table_of_common_time_complexities