1. Home
  2. Explore
  3. Computer Science
  4. Reproducible Data Science

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Reproducible Data Science

  • 41Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Data Science Workflow

What is the main difference between data science modeling and conventional software development, as described in the content?

41 questions

  1. 1

    What is the main difference between data science modeling and conventional software development, as described in the content?

    1. A

      Modeling and software development use identical workflows throughout a project.

    2. B

      Modeling is largely exploratory research, while software development becomes central near deployment.

    3. C

      Modeling avoids experimentation, while software development relies on repeated trial and error.

    4. D

      Modeling is mainly production coding, while software development is used only for data cleaning.

    Correct answer
    B

    Modeling is largely exploratory research, while software development becomes central near deployment.

    Explanation

    The content describes modeling as research-oriented work involving exploration and mistakes, with software development becoming more prominent near production deployment.

  2. 2

    Why can mistakes made during machine learning research be valuable?

    1. A

      They allow researchers to avoid testing alternative modeling approaches.

    2. B

      They eliminate the need to document data preparation and analysis.

    3. C

      They guarantee that the final model will perform better than earlier models.

    4. D

      They reveal which approaches did not work and can inform later decisions.

    Correct answer
    D

    They reveal which approaches did not work and can inform later decisions.

    Explanation

    The content emphasizes that trials, errors, and mistakes help researchers understand how they arrived at a solution and can guide subsequent work.

  3. 3

    What information can be lost when a team member shares only final model results?

    1. A

      The names of the programming languages used in the project

    2. B

      The experiments and reasoning that led to the selected solution

    3. C

      The ability to deploy any model using an integrated development environment

    4. D

      The distinction between training data and production hardware

    Correct answer
    B

    The experiments and reasoning that led to the selected solution

    Explanation

    Final results alone may hide unsuccessful experiments and the reasoning that shaped the eventual approach.

  4. 4

    At what stage does conventional software development become especially relevant to a data science project?

    1. A

      When a tested solution is ready to be deployed and maintained in production

    2. B

      Only when the team decides which errors to leave in a notebook

    3. C

      Whenever an analyst performs an initial descriptive statistic

    4. D

      Before any data is examined or research questions are considered

    Correct answer
    A

    When a tested solution is ready to be deployed and maintained in production

    Explanation

    The content says software development has similarities with data science near the end, when the solution is ready for production deployment and maintenance.

  5. 5

    What is the purpose of separating research and modeling from production engineering?

    1. A

      It prevents a model from being updated after it enters production.

    2. B

      It lets exploratory work retain its record while production work uses tools suited to deployment and maintenance.

    3. C

      It ensures that researchers never use code or version control during modeling.

    4. D

      It requires the production team to repeat every exploratory mistake before deployment.

    Correct answer
    B

    It lets exploratory work retain its record while production work uses tools suited to deployment and maintenance.

    Explanation

    The two phases have different needs: notebooks support research and record-keeping, while more classical development approaches suit deployment and ongoing maintenance.

  6. 6

    Why might a larger organization assign deployment to a separate team?

    1. A

      Only a separate team is able to interpret the results of a notebook.

    2. B

      Exploratory researchers are not permitted to use production data.

    3. C

      A separate team removes the need to preserve project history.

    4. D

      Deployment and deployability can be distinct responsibilities within the broader operations lifecycle.

    Correct answer
    D

    Deployment and deployability can be distinct responsibilities within the broader operations lifecycle.

    Explanation

    The speaker notes that larger organizations may have a separate team responsible for deployment, fitting the division between research and production operations.

  7. 7

    How can a preserved record of analysis support a future colleague who takes over a project?

    1. A

      It automatically converts the model into a production service without further work.

    2. B

      It allows the colleague to follow the original reasoning and resume from where the previous researcher stopped.

    3. C

      It ensures that the original researcher’s conclusions cannot be questioned.

    4. D

      It removes the need for the colleague to understand the data preparation steps.

    Correct answer
    B

    It allows the colleague to follow the original reasoning and resume from where the previous researcher stopped.

    Explanation

    A notebook can preserve the thought process and analysis so another person can understand and continue the work if the original researcher is unavailable.

  8. 8

    Which description best captures a notebook’s role in exploratory data science?

    1. A

      It combines executable code with explanations and a record of intermediate work.

    2. B

      It is a graphical interface that prevents users from revising earlier analyses.

    3. C

      It replaces all version control and dependency management tools.

    4. D

      It stores only the final source code that will run in production.

    Correct answer
    A

    It combines executable code with explanations and a record of intermediate work.

    Explanation

    A notebook is an interactive environment where code can be accompanied by explanatory text and intermediate results, including earlier attempts.

  9. 9

    How does a notebook help a reader understand how a result was reached?

    1. A

      It can preserve explanations, code, and successive attempts rather than showing only the final result.

    2. B

      It automatically identifies the one correct model and deletes all alternatives.

    3. C

      It hides intermediate outputs so that readers focus only on conclusions.

    4. D

      It converts every coding decision into a formal software specification.

    Correct answer
    A

    It can preserve explanations, code, and successive attempts rather than showing only the final result.

    Explanation

    The content explains that notebooks let readers scan the researcher’s way of thinking, including replicated code and successive attempts.

  10. 10

    Which statement about where notebooks can run is supported by the content?

    1. A

      They can run locally, within an IDE, or through a hosted service.

    2. B

      They require a cloud service and cannot be installed locally.

    3. C

      They can run only as part of a production application.

    4. D

      They can run only on a local laptop with no cloud access.

    Correct answer
    A

    They can run locally, within an IDE, or through a hosted service.

    Explanation

    The content describes locally hosted notebooks, notebooks installed as part of an IDE, and hosted notebook services.

  11. 11

    How can a hosted notebook help when moving work to a customer’s cloud environment?

    1. A

      It prevents the researcher from using the customer’s computing resources.

    2. B

      It automatically sends the customer’s data to the researcher’s local laptop.

    3. C

      The notebook can be moved so work can continue with the customer’s data without unnecessarily sharing that data.

    4. D

      It eliminates all security boundaries between the customer and researcher.

    Correct answer
    C

    The notebook can be moved so work can continue with the customer’s data without unnecessarily sharing that data.

    Explanation

    The speaker describes transferring a notebook to a customer’s cloud and continuing with the customer’s data without having to share the data elsewhere.

  12. 12

    What is a practical reason to preserve unsuccessful notebook experiments?

    1. A

      They make it unnecessary to document the final model’s parameters.

    2. B

      They prevent later readers from reproducing the successful result.

    3. C

      They prove that every unsuccessful experiment should be included in the production application.

    4. D

      They show what was tried and can explain why the researcher chose a later approach.

    Correct answer
    D

    They show what was tried and can explain why the researcher chose a later approach.

    Explanation

    A record of unsuccessful attempts helps readers understand the path to the selected solution and the researcher’s reasoning.

  13. 13

    Why can hosted notebooks make it easier to move work between environments?

    1. A

      They guarantee that datasets never require access controls.

    2. B

      They automatically make every library and dependency identical across environments.

    3. C

      The notebook can carry code and the researcher’s explanations into another notebook-compatible environment.

    4. D

      They convert notebook code into a model that needs no further testing.

    Correct answer
    C

    The notebook can carry code and the researcher’s explanations into another notebook-compatible environment.

    Explanation

    The content describes wrapping work in a notebook and transferring it between environments that support notebooks, carrying the work and its reasoning along.

  14. 14

    What team practice does the speaker recommend to reduce notebook merge conflicts?

    1. A

      Avoid using Git for notebook-based projects.

    2. B

      Delete individual notebooks as soon as a result is produced.

    3. C

      Require every team member to edit the same notebook at the same time.

    4. D

      Have individuals maintain their own notebooks and combine results when needed.

    Correct answer
    D

    Have individuals maintain their own notebooks and combine results when needed.

    Explanation

    The speaker finds it simplest for each person to carry an individual notebook, with results brought together when appropriate.

  15. 15

    What does the speaker mean by componentizing a shared notebook?

    1. A

      Removing explanations so that only code remains in the shared notebook.

    2. B

      Storing all analysis in one shared cell that every team member edits.

    3. C

      Replacing notebook sections with a single production executable.

    4. D

      Separating notebook sections so individuals manage their own parts before results are brought together.

    Correct answer
    D

    Separating notebook sections so individuals manage their own parts before results are brought together.

    Explanation

    The speaker says shared team notebooks can work when they are componentized, with sections managed by individuals and results later combined.

  16. 16

    What happens to notebooks when a project moves to production, according to the described workflow?

    1. A

      They remain the only tools used for production debugging and maintenance.

    2. B

      They are archived, while production work moves to a more conventional development environment.

    3. C

      They are deleted immediately, including any record of the research.

    4. D

      They are merged into the data repository and no longer retained.

    Correct answer
    B

    They are archived, while production work moves to a more conventional development environment.

    Explanation

    At deployment, the notebooks are set aside but archived for future reference, while the team shifts to an IDE-based or other conventional development approach.

  17. 17

    Which materials from exploratory work are carried into the production-oriented phase?

    1. A

      The final versions, chosen parameters, and agreed data preparation steps

    2. B

      Every intermediate result, regardless of whether it was useful

    3. C

      Only the original raw data, with no model settings or preparation details

    4. D

      The visual outputs alone, without code or processing decisions

    Correct answer
    A

    The final versions, chosen parameters, and agreed data preparation steps

    Explanation

    The content says the team takes the final versions, parameters, and agreed data preparation steps into the production-oriented process.

  18. 18

    Why is a conventional development environment described as better suited to an already-deployed project?

    1. A

      It better supports maintaining, debugging, and updating the production system.

    2. B

      It prevents teams from modifying a model after deployment.

    3. C

      It automatically reproduces the original research without stored project history.

    4. D

      It preserves exploratory mistakes more clearly than a notebook does.

    Correct answer
    A

    It better supports maintaining, debugging, and updating the production system.

    Explanation

    The content identifies IDE-based development as better suited to maintaining a production project, including debugging and updates.

  19. 19

    Which sequence best matches the reproducible workflow described?

    1. A

      Write production code first, avoid recording experiments, then export only the final model.

    2. B

      Create a notebook, publish it immediately, then remove all project history before deployment.

    3. C

      Deploy a model, discard its data preparation, then begin exploring dependencies in a notebook.

    4. D

      Create a project, configure version control and dependencies, explore in a notebook, share findings, then transition to production development.

    Correct answer
    D

    Create a project, configure version control and dependencies, explore in a notebook, share findings, then transition to production development.

    Explanation

    The workflow begins with a project and its source, versioning, and dependency setup; exploration and sharing follow, with a later transition to production development.

  20. 20

    What role does Git play in the proposed project workflow?

    1. A

      It replaces the need to organize project source files.

    2. B

      It automatically converts notebook outputs into production code.

    3. C

      It freezes the package repository to a chosen date.

    4. D

      It provides versioning and source-code control for the project.

    Correct answer
    D

    It provides versioning and source-code control for the project.

    Explanation

    The speaker presents Git as the tool of choice for versioning and source-code control in the project.

  21. 21

    Why does the workflow recommend controlling package or dependency versions?

    1. A

      Dependency control guarantees that the research question is scientifically valid.

    2. B

      Freezing dependencies eliminates the need to preserve data or code.

    3. C

      Package versions determine whether a notebook can include explanatory text.

    4. D

      Changes in dependencies can otherwise affect results even when the analysis code stays the same.

    Correct answer
    D

    Changes in dependencies can otherwise affect results even when the analysis code stays the same.

    Explanation

    Freezing the dependency environment reduces the influence of changes in packages and the wider ecosystem on later runs.

  22. 22

    What is the purpose of a dated snapshot of the R ecosystem in the described workflow?

    1. A

      It selects the most accurate machine-learning algorithm for a dataset.

    2. B

      It records the date on which a model was first deployed but not its dependencies.

    3. C

      It stores the project’s data while omitting package and source information.

    4. D

      It freezes the versions available to a project so later ecosystem changes do not alter its environment.

    Correct answer
    D

    It freezes the versions available to a project so later ecosystem changes do not alter its environment.

    Explanation

    The snapshot fixes the state of the R ecosystem at a selected date, protecting the project from later changes to its dependencies.

  23. 23

    What function did MRAN serve in the R workflow described?

    1. A

      It hosted Jupyter notebooks and converted them to R Markdown.

    2. B

      It ran clustering models in a production SQL Server.

    3. C

      It provided a Git interface for merging individual notebooks.

    4. D

      It provided daily snapshots of CRAN that could be used to reproduce an earlier package environment.

    Correct answer
    D

    It provided daily snapshots of CRAN that could be used to reproduce an earlier package environment.

    Explanation

    MRAN is described as Microsoft’s daily snapshot of CRAN, serving as a time-machine-like way to select an earlier R package state.

  24. 24

    How should a project team choose the date for an ecosystem snapshot?

    1. A

      It must always use the date of the latest major software release.

    2. B

      It may use the project start date or a slightly older, more stable date.

    3. C

      It should choose a date after the project ends so all packages are current.

    4. D

      It should change the snapshot date every time the notebook is run.

    Correct answer
    B

    It may use the project start date or a slightly older, more stable date.

    Explanation

    The content says teams often select the project’s start date but may use a slightly older date if that point was more stable.

  25. 25

    What additional condition, besides freezing the software environment, is needed to reproduce an analysis as described?

    1. A

      The project must be written in the same IDE as the original analysis.

    2. B

      The model must be deployed to a large compute cluster.

    3. C

      The data must also be frozen or otherwise held constant.

    4. D

      The notebook must be converted to a PDF before every run.

    Correct answer
    C

    The data must also be frozen or otherwise held constant.

    Explanation

    The demonstration states that reproducibility depends on both a frozen environment and data that has been frozen in time.

  26. 26

    What is one way to share or export findings from a notebook?

    1. A

      Publish the source data while leaving out the analysis.

    2. B

      Render or export them as formats such as PDF or HTML.

    3. C

      Convert them exclusively into a Git commit without readable output.

    4. D

      Move them directly into a production IDE without any review.

    Correct answer
    B

    Render or export them as formats such as PDF or HTML.

    Explanation

    The workflow describes exporting findings as PDFs or HTML, including for later publication or review.

  27. 27

    What source-format difference between R Markdown notebooks and Jupyter notebooks is described?

    1. A

      Jupyter has no underlying source file, while R Markdown stores only images.

    2. B

      R Markdown stores its source only as JSON, while Jupyter stores everything as plain text.

    3. C

      R Markdown notebook content is text, while Jupyter separates the visible work from a JSON source representation.

    4. D

      Both systems store notebooks only as compiled binaries.

    Correct answer
    C

    R Markdown notebook content is text, while Jupyter separates the visible work from a JSON source representation.

    Explanation

    The speaker contrasts text-based R Markdown notebooks with Jupyter’s underlying JSON files and an invisible layer between the user’s work and that source.

  28. 28

    Why does the speaker consider Git use more straightforward with R Markdown and RStudio than with Jupyter?

    1. A

      Jupyter notebooks cannot be tracked by Git under any circumstances.

    2. B

      RStudio automatically merges every change without creating conflicts.

    3. C

      The R Markdown notebook is text-based, making its source more directly accessible to Git.

    4. D

      R Markdown eliminates the need to manage project versions.

    Correct answer
    C

    The R Markdown notebook is text-based, making its source more directly accessible to Git.

    Explanation

    Because R Markdown notebook content is text, Git can work more directly with its source; the speaker notes that Jupyter issues can also be addressed.

  29. 29

    What is the speaker’s qualification about Git and Jupyter notebooks?

    1. A

      Jupyter is inherently more reproducible because it uses JSON.

    2. B

      Git cannot be used with Jupyter notebooks at all.

    3. C

      Git is useful only with RStudio and not with other development tools.

    4. D

      Jupyter’s extra source layer can make Git less straightforward, but the issues can be solved.

    Correct answer
    D

    Jupyter’s extra source layer can make Git less straightforward, but the issues can be solved.

    Explanation

    The speaker says Jupyter’s JSON layer makes Git somewhat less straightforward than with R Markdown, but that the issues can be solved.

  30. 30

    Which Python-related approach is mentioned for managing dependencies?

    1. A

      MRAN snapshots, which are described as the standard Python package system

    2. B

      Virtual environments, with Anaconda also presented as an option with its own tools and complexity

    3. C

      R Markdown, which automatically freezes every Python dependency

    4. D

      SQL Server ML Services, which replace Python package management

    Correct answer
    B

    Virtual environments, with Anaconda also presented as an option with its own tools and complexity

    Explanation

    The content mentions Python virtual environments and Anaconda as approaches for dealing with dependencies.

  31. 31

    What reason does the speaker give for avoiding a simple comparison between R and Python dependency management?

    1. A

      Python has no available tools for managing dependencies.

    2. B

      Both ecosystems always install identical package versions.

    3. C

      The dependency landscape in Python may be more complex.

    4. D

      The R ecosystem does not use packages or libraries.

    Correct answer
    C

    The dependency landscape in Python may be more complex.

    Explanation

    Although the speaker finds the R approach simpler, he cautions that the comparison may be unfair because Python dependencies can be more complex.

  32. 32

    In the clustering example, why did the initial k-means result look poor?

    1. A

      The principal components had already separated the clusters completely.

    2. B

      The model used too many indicator columns before fitting.

    3. C

      The useful input features were categorical, whereas k-means prefers numerical data.

    4. D

      The data contained no variation, so clustering could not identify any groups.

    Correct answer
    C

    The useful input features were categorical, whereas k-means prefers numerical data.

    Explanation

    The initial clustering performed poorly because the useful data was categorical rather than the numerical form preferred by k-means.

  33. 33

    What change was made to make categorical data more suitable for the k-means example?

    1. A

      The categorical features were removed and replaced with cluster labels.

    2. B

      The data was kept categorical while the k-means algorithm was replaced with Git.

    3. C

      The data was converted into text explanations for the notebook.

    4. D

      The categorical features were converted into indicator columns, similar to one-hot coding.

    Correct answer
    D

    The categorical features were converted into indicator columns, similar to one-hot coding.

    Explanation

    The speaker used a function that created indicator columns, describing the approach as similar to one-hot coding.

  34. 34

    What did the first conversion of categorical data indicate about the clustering results?

    1. A

      The conversion eliminated all variability in the data.

    2. B

      The original data points moved to new locations in the visualization.

    3. C

      The clusters became perfectly separated and no further analysis was needed.

    4. D

      The data began to show structure, although substantial overlap between clusters remained.

    Correct answer
    D

    The data began to show structure, although substantial overlap between clusters remained.

    Explanation

    After creating indicator columns, the plot began to show a more interesting shape, but the clusters still overlapped considerably.

  35. 35

    What was the purpose of the later clustering step using an automated clustering function?

    1. A

      To freeze the R ecosystem at a selected date.

    2. B

      To convert the notebook into an HTML report without changing the analysis.

    3. C

      To improve the clusters’ shape and separation by trying alternative clustering runs.

    4. D

      To replace categorical variables with descriptive statistics.

    Correct answer
    C

    To improve the clusters’ shape and separation by trying alternative clustering runs.

    Explanation

    The later step used a clustering function to automate or optimize runs, leading to at least some separation between clusters.

  36. 36

    In the clustering visualization, what did the principal components help indicate?

    1. A

      Whether the notebook source was stored as text or JSON

    2. B

      Whether the cluster definitions were beginning to show meaningful variability and separation

    3. C

      Whether the data had been frozen at the correct package snapshot

    4. D

      Whether the model was ready for production without further testing

    Correct answer
    B

    Whether the cluster definitions were beginning to show meaningful variability and separation

    Explanation

    The speaker says the principal-component representation indicated increasing variability in the cluster definitions as the clusters began to separate.

  37. 37

    What is one benefit of using SQL Server ML Services in the described local setup?

    1. A

      It automatically turns exploratory notebooks into Git repositories.

    2. B

      It removes the need to record package versions or data preparation.

    3. C

      It guarantees that categorical data will work directly with k-means.

    4. D

      It can support performance advantages and analysis close to data held in SQL Server.

    Correct answer
    D

    It can support performance advantages and analysis close to data held in SQL Server.

    Explanation

    The speaker uses SQL Server ML Services for production-related performance and to analyze data close to where it resides, including in relational databases.

  38. 38

    What was the notable capability of the Azure Machine Learning compute instance described?

    1. A

      It stored only PDFs and could not execute notebook code.

    2. B

      It provided a virtual-machine-like environment with Jupyter tools and RStudio preinstalled.

    3. C

      It replaced all open-source packages with proprietary Microsoft tools.

    4. D

      It required users to install Kubernetes and every notebook tool themselves.

    Correct answer
    B

    It provided a virtual-machine-like environment with Jupyter tools and RStudio preinstalled.

    Explanation

    The compute instance is described as similar to a virtual machine, with JupyterLab, Jupyter, and RStudio preinstalled.

  39. 39

    How could Azure Machine Learning support larger computational needs in the described setup?

    1. A

      A user could launch machine-learning jobs on a larger compute cluster, potentially including an R Spark cluster.

    2. B

      A user could replace all data processing with a static PDF export.

    3. C

      A user could only run the analysis on the local browser and could not scale it.

    4. D

      A user could increase the number of notebook cells without using additional compute.

    Correct answer
    A

    A user could launch machine-learning jobs on a larger compute cluster, potentially including an R Spark cluster.

    Explanation

    The speaker describes being able to run jobs on larger compute resources, including a possible R Spark cluster, without setting up the infrastructure locally.

  40. 40

    What difference between local and cloud RStudio environments does the speaker identify?

    1. A

      The local version supports R, while the cloud version supports only Python.

    2. B

      The cloud version cannot run open-source packages or notebooks.

    3. C

      The available libraries and packages may differ, even though the setup and capabilities are otherwise similar.

    4. D

      The cloud version always uses proprietary Microsoft techniques.

    Correct answer
    C

    The available libraries and packages may differ, even though the setup and capabilities are otherwise similar.

    Explanation

    The speaker says RStudio in the cloud works similarly to the local version, with differences mainly in the libraries and packages available.

  41. 41

    What limitation does the speaker mention regarding proprietary Microsoft machine-learning techniques in the cloud?

    1. A

      They prevent notebooks from being transferred between environments.

    2. B

      They are required for all analysis performed in RStudio.

    3. C

      They can be more difficult to use in the cloud than open-source packages.

    4. D

      They cannot be used with SQL Server ML Services.

    Correct answer
    C

    They can be more difficult to use in the cloud than open-source packages.

    Explanation

    The speaker says open-source packages generally work similarly across environments, while some proprietary Microsoft techniques are more difficult to use in the cloud at that time.

Question 1 of 41
Question 1 of 41

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent