hil-se / fds

DSCI-633: Foundations of Data Science https://github.com/hil-se/fds
MIT License
26 stars 10 forks source link

Reference answer to the assignments #80

Closed azhe825 closed 2 years ago

azhe825 commented 3 years ago

Answers will be available at https://github.com/hil-se/ans_fds

Goitsemedi888 commented 3 years ago

[image: image.png]

I updated the google docs a week ago not sure why its not updated on your end

On Wed, Feb 17, 2021 at 9:29 AM Zhe Yu notifications@github.com wrote:

Answers will be available at https://github.com/hil-se/ans_fds

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hil-se/fds/issues/80, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXMJ235ZMRTBTDGFFPQRCLS7PHBXANCNFSM4XYOMLNA .

Goitsemedi888 commented 3 years ago

[image: image.png]

On Wed, Feb 17, 2021 at 9:29 AM Zhe Yu notifications@github.com wrote:

Answers will be available at https://github.com/hil-se/ans_fds

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hil-se/fds/issues/80, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXMJ235ZMRTBTDGFFPQRCLS7PHBXANCNFSM4XYOMLNA .

azhe825 commented 3 years ago

@Goitsemedi888 I do not know what you mean and I cannot see your image.

azhe825 commented 3 years ago

Reference answer to Assignment 3 is available at https://github.com/hil-se/ans_fds

Goitsemedi888 commented 3 years ago
stats = Counter(labels)
N = float(len(labels))

if self.criterion == "gini":  # Implement gini impurity
    impurity = (1-np.sum(N)**2).sum(axis=1)
elif self.criterion == "entropy":  # Implement entropy impurity
    impurity = np.sum([(N/np.sum(N)).sum(axis=1) *

np.log2(N/np.sum(N).sum(axis=1))]) else: raise Exception("Unknown criterion.") print(impurity)

return impurity

I do not get error message but nothing prints...i need assist

On Fri, Feb 26, 2021 at 8:56 AM Zhe Yu notifications@github.com wrote:

Reference answer to Assignment 3 is available at https://github.com/hil-se/ans_fds

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hil-se/fds/issues/80#issuecomment-786662196, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXMJ23FCMX4C7JGCOW7DY3TA6SADANCNFSM4XYOMLNA .

azhe825 commented 3 years ago

@Goitsemedi888 You can use set_trace() to debug which line you can get to.

Goitsemedi888 commented 3 years ago

set_trace does not work in pycharm... is there a tutor you can recommend?. I am over getting zeros and spending countless hours on youtube for a class costing me $3000+ to learn absolutely nothing ...ISTE 600 goes over the same things and demo's the software. I did work with the T.A and its typically brief i understand he has his own projects and other students to assist.

On Mon, Mar 1, 2021 at 8:56 AM Zhe Yu notifications@github.com wrote:

@Goitsemedi888 https://github.com/Goitsemedi888 You can use set_trace() to debug which line you can get to.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hil-se/fds/issues/80#issuecomment-787967446, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXMJ2ZHERUYOL4D3X2CDXTTBOMJHANCNFSM4XYOMLNA .

nairnish commented 3 years ago

You can use pdb.set_trace() in pycharm to do the same. Hope this helps.

Goitsemedi888 commented 3 years ago

I need a tutor for this course. I have done w-3 schools and demo python to get basics and I can do headers, remove columns, do replacement but thats not cutting reconstructing sklearn using python and the half a lecture we did on python does not match up in complexity of assignments ... i have 3 zeros for $3000. I have tried to get help, every other class demos the code walks through logic ...you cannot teach calculus with words, same applies here...the assignment answers do not break down the logic of the algorithm so i spent more hour highlighting and googling each function.

On Mon, Mar 1, 2021 at 12:41 PM Nishant Nair notifications@github.com wrote:

You can use pdb.set_trace() in pycharm to do the same. Hope this helps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hil-se/fds/issues/80#issuecomment-788137196, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXMJ2ZJIUIG7YKWAZ6HHTDTBPGSTANCNFSM4XYOMLNA .

azhe825 commented 3 years ago

I think there are two tutors available for this course. They are listed as support staffs in the mycourses system. You can reach out to them for help.

Goitsemedi888 commented 3 years ago

my sincerest apologies, i had no intent to be rude. my work schedule coincides with class and help hours. I had to drop session when my boss appeared.

On Mon, Mar 1, 2021 at 1:23 PM Zhe Yu notifications@github.com wrote:

I think there are two tutors available for this course. They are listed as support staffs in the mycourses system. You can reach out to them for help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hil-se/fds/issues/80#issuecomment-788166164, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASXMJ27TGBD6VOBVO6D3H6LTBPLRZANCNFSM4XYOMLNA .

azhe825 commented 3 years ago

No worries.