hogenttin / dsai-labs Goto Github PK
View Code? Open in Web Editor NEWThe Python labs for the course Data Science & AI (English taught)
The Python labs for the course Data Science & AI (English taught)
var()
ipv std()**2
np.var()
ipv a.var()
; np.mean()
ipv a.mean()
In de voorbeeldcode voor het bepalen van de regressierechte worden 2 cijfers na de komma gegeven:
print(f"Regression line: ŷ = {weight_model.intercept_:.2f} + {weight_model.coef_[0]:.2f} x")
Het zou beter zijn 4 cijfers na de komma te geven (zodat studenten die deze code op het examen gebruiken voldoende precieze antwoorden geven).
Standard error (
CSV-bestanden met , als decimaalteken kunnen bij importeren meteen correct geparsed worden, maar in sommige oefeningen wordt dat niet gedaan en wordt gesuggereerd om met string-replacement om te zetten in de Angelsaksische notatie en dan als float te parsen. Dit is echter overbodig.
De volgorde waarin de verschillende grafieken voor kwantitatieve variabelen getoond wordt kan logischer opgebouwd worden:
The filenames of code demos and lab assignments are not always consistent. For clarity's sake, ensure that in all modules, files are named consistently, e.g. "demo-CHAP-NN-TOPIC.ipynb" and "lab-CHAP-NN-TOPIC.ipynb"
observed_p = pd.crosstab(df.A, df.B, normalize='index')
observed_p.plot(kind='bar', stacked=True)
Bij de berekening van chi2 voor een 2x2 kruistabel zal de chi2_contingency()-functie de continuïteitscorrectie van Yates toepassen. Als je chi2 volgens de uitgewerkte methode uitrekent, zal je dus een ander resultaat uitkomen.
Je kan continuïteitscorrectie uitschakelen met parameter correction=False
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.