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

  • 47Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Research Workflow
The modeling stage of data science is more like
than conventional software development.

47 questions

  1. 1
    The modeling stage of data science is more like
    _____
    than conventional software development.
    Hint

    Think of the activity of investigating, testing ideas, and learning from results.

    Answer

    research

    Explanation

    Modeling involves exploration and investigation, so it is more like research than building a predefined software product.

  2. 2
    In a machine-learning project, software development becomes most prominent near the
    _____
    of the process, when a model is ready for production.
    Hint

    This is the stage after research and modeling are complete.

    Answer

    very end

    Explanation

    The software-development aspect comes in near the very end, when the work is ready to be deployed to production.

  3. 3
    During machine-learning research, trials, errors, and mistakes can be valuable because they reveal
    _____
    that can inform later choices.
    Hint

    Think about what unsuccessful experiments teach the team.

    Answer

    what did not work

    Explanation

    Recording unsuccessful approaches helps explain how the team arrived at its eventual solution.

  4. 4
    Traditional IDEs are designed to help create the final product, and can hide the
    _____
    made along the way.
    Hint

    Consider what may be obscured when an IDE focuses on polished results.

    Answer

    sweat and errors and the mistakes

    Explanation

    The speaker contrasts IDEs' focus on the final product with the value of seeing the experimentation and mistakes behind it.

  5. 5
    A notebook is especially useful during the
    _____
    part of machine learning, when people are exploring and testing ideas.
    Hint

    This is the phase before the work shifts toward production maintenance.

    Answer

    research oriented

    Explanation

    Notebooks suit the research-oriented part of machine learning because they preserve experimentation and thinking.

  6. 6
    When a machine-learning model is ready for deployment and ongoing maintenance, a more classical
    _____
    approach is often better suited.
    Hint

    Think of the environment typically used to build and maintain production software.

    Answer

    IDE-based development

    Explanation

    The speaker recommends a more classical, perhaps IDE-based, development approach for final production stages and maintenance.

  7. 7
    In larger companies, a separate team may take responsibility for model
    _____
    and deployment.
    Hint

    This refers to preparing a model so it can be put into service.

    Answer

    deployability

    Explanation

    The speaker notes that larger organizations may assign deployability and deployment to a dedicated team.

  8. 8
    A reproducible workflow keeps a record of the research process so future readers can understand how the team
    _____
    at its conclusions.
    Hint

    The missing word describes reaching a result through a sequence of work.

    Answer

    arrived

    Explanation

    A record of the work makes it possible to follow the reasoning that led to a conclusion.

  9. 9
    A notebook is described as an interactive console, or a console on
    _____
    .
    Hint

    The phrase emphasizes that a notebook offers capabilities beyond a basic console.

    Answer

    steroids

    Explanation

    A notebook combines an interactive coding environment with additional ways to document and preserve work.

  10. 10
    Unlike a basic console, a notebook lets users surround code with explanations, text, and their
    _____
    .
    Hint

    This is the reasoning that accompanies the code and results.

    Answer

    thinking

    Explanation

    A notebook can preserve explanations and the author's thinking alongside executable code.

  11. 11
    A notebook can preserve an incorrect version of code and then show later
    _____
    versions of the approach.
    Hint

    Think of the version that improves on an earlier attempt.

    Answer

    better

    Explanation

    Users can retain earlier code and results while replicating and improving the approach in later notebook sections.

  12. 12
    Notebooks can be hosted locally on a laptop, integrated into an IDE, or used through a
    _____
    version.
    Hint

    This option lets a user work without installing the notebook environment locally.

    Answer

    hosted

    Explanation

    The content describes local notebooks, IDE-integrated notebooks, and hosted notebook services.

  13. 13
    Wrapping work in a notebook can make it easier to move between environments and continue using a customer's data without sharing the data across unnecessary
    _____
    boundaries.
    Hint

    These boundaries help control access to sensitive information.

    Answer

    security

    Explanation

    The speaker describes moving notebook work to a customer's cloud environment to work with its data without crossing unnecessary security boundaries.

  14. 14
    When a team shares a notebook, the speaker recommends that it be
    _____
    into sections managed by individuals.
    Hint

    This means dividing the work into manageable parts.

    Answer

    componentize

    Explanation

    Componentizing a shared notebook lets individuals manage sections and combine results later.

  15. 15
    The simplest team approach described is for each person to carry their own notebook, with the notebooks managed as part of the project using
    _____
    .
    Hint

    This tool tracks versions and source-code changes.

    Answer

    Git

    Explanation

    Individual notebooks can be part of a project managed with Git, reducing conflicts from multiple people editing the same notebook.

  16. 16
    When research notebooks are handed to someone else, they can scan the author's entire
    _____
    rather than seeing only the final result.
    Hint

    This is the reasoning process that led to the result.

    Answer

    way of thinking

    Explanation

    Notebooks preserve the path of exploration, helping another person understand how the author reached the outcome.

  17. 17
    The project created at the start of the workflow holds source code, notebook source, selected in-memory data, and the
    _____
    of the work.
    Hint

    This records what has happened throughout the project.

    Answer

    entire history

    Explanation

    The project is intended to contain the code, any in-memory data chosen for saving, and the history of the work.

  18. 18
    For versioning and source-code control, the tool described as the tool of choice is
    _____
    .
    Hint

    It is commonly used to track code changes over time.

    Answer

    Git

    Explanation

    The speaker identifies Git as the environment and tool of choice for versioning and source-code control.

  19. 19
    In RStudio with an R Markdown notebook, the notebook is stored as
    _____
    that can be read and managed much like other programming-language source.
    Hint

    The speaker contrasts this with Jupyter's underlying format.

    Answer

    text

    Explanation

    R Markdown notebooks are text, while the notebook interface provides a preview of the work.

  20. 20
    In Jupyter, the source that creates a layer between the user-facing notebook and its underlying file is stored as
    _____
    .
    Hint

    This is a structured data-interchange format.

    Answer

    JSON files

    Explanation

    The speaker explains that Jupyter's notebook interface sits over an underlying JSON-file layer.

  21. 21
    The Microsoft daily snapshot of CRAN was provided by the time machine called
    _____
    .
    Hint

    This is the named service used to snapshot the R package ecosystem.

    Answer

    MRAN

    Explanation

    MRAN provided daily snapshots of CRAN, allowing projects to use an earlier state of the R ecosystem.

  22. 22
    The repository archive containing packages and sources for the R ecosystem is called
    _____
    .
    Hint

    It is the central repository archive mentioned alongside MRAN.

    Answer

    CRAN

    Explanation

    CRAN is the repository archive of packages and sources for the R ecosystem.

  23. 23
    To freeze the R ecosystem for a project, practitioners select a particular date and use it as a
    _____
    .
    Hint

    This captures the state of dependencies at a point in time.

    Answer

    snapshot

    Explanation

    A snapshot fixes the state of the R ecosystem to a chosen date so later dependency changes do not affect the project.

  24. 24
    A project may use a date older than its start date if that date represents a more
    _____
    state of the ecosystem.
    Hint

    The goal is to avoid a period just after a major release or update.

    Answer

    stable

    Explanation

    The speaker says an older snapshot can be preferable when the ecosystem was more stable than immediately after a major update.

  25. 25
    In Python, dependency isolation can be handled using virtual environments or tools such as
    _____
    .
    Hint

    This is one of the Python environment-management options mentioned.

    Answer

    Anaconda

    Explanation

    The speaker cites virtual environments and Anaconda as ways of dealing with Python dependencies.

  26. 26
    Whether to preserve in-memory data between project runs or erase it and start fresh is a choice teams can decide on
    _____
    .
    Hint

    The speaker says this decision need not be settled at the beginning.

    Answer

    later

    Explanation

    The workflow allows different attitudes toward retaining in-memory data, with the decision deferred until later.

  27. 27
    When findings are ready to share, a notebook can be exported as a PDF or an
    _____
    .
    Hint

    This is a common web-page format that can also be used for sharing results.

    Answer

    HTML

    Explanation

    The speaker mentions exporting notebook findings as PDFs or HTML, including for possible academic publication.

  28. 28
    After the work is tested and ready for production, the team switches from notebooks to an
    _____
    .
    Hint

    This is the development environment more suited to production code maintenance.

    Answer

    IDE

    Explanation

    The workflow abandons the notebook environment for production development, while retaining the notebook for future reference.

  29. 29
    When moving to production, the notebook is abandoned as a working environment but
    _____
    for future purposes.
    Hint

    The notebook is kept rather than permanently discarded.

    Answer

    archived

    Explanation

    The speaker says notebooks are archived so the research process remains available later.

  30. 30
    To reproduce an analysis reliably, both the data and the computing
    _____
    need to be frozen in time.
    Hint

    This includes the software and dependencies used to run the analysis.

    Answer

    environment

    Explanation

    The speaker says reproducibility depends on freezing the data and the environment in which the analysis runs.

  31. 31
    If a reviewer questions an analysis, a documented notebook can help retrace the work by replaying part of the
    _____
    .
    Hint

    This is the record containing code, results, and the analytical process.

    Answer

    notebook

    Explanation

    Replaying part of the notebook makes it easier to check the steps and address concerns about the analysis.

  32. 32
    Including data preparation in a notebook makes it possible to trace the work from the starting data through to the
    _____
    .
    Hint

    These are the results reached at the end of the analysis.

    Answer

    conclusions

    Explanation

    If data preparation is recorded, readers can follow the analysis from the initial data to its conclusions.

  33. 33
    A reproducible notebook supports auditability and explainability by preserving the data preparation and the analyst's
    _____
    .
    Hint

    It records the reasoning behind the analytical choices.

    Answer

    way of thinking

    Explanation

    A notebook makes the process more auditable and explainable by preserving the reasoning and steps that produced the result.

  34. 34
    If the original analyst is unavailable, another person can pick up the work from the notebook and continue from where the analyst left off in the
    _____
    .
    Hint

    This describes the reasoning that was in progress when the work stopped.

    Answer

    thought process

    Explanation

    The notebook gives a successor a record of the original analyst's thought process and work.

  35. 35
    The R workflow example ran alongside Microsoft SQL Server ML Services so analysis could be performed close to the
    _____
    .
    Hint

    This is where many customers' information resides.

    Answer

    data

    Explanation

    The speaker values analyzing data close to its source, often a traditional relational database such as SQL Server.

  36. 36
    In the example, the first k-means clustering results were poor because the useful features were mostly
    _____
    .
    Hint

    These features represent categories rather than the kind of numeric values k-means prefers.

    Answer

    categorical

    Explanation

    The original data was categorical, whereas k-means requires or prefers numerical inputs, leading to poor initial clusters.

  37. 37
    To make categorical data more suitable for k-means, the example converted it into indicator columns, a technique similar to
    _____
    .
    Hint

    This coding approach represents categories with separate binary indicators.

    Answer

    one-hot coding

    Explanation

    The R function created indicator columns, similar to one-hot coding, to make the categorical data more suitable for k-means.

  38. 38
    After converting categorical data into indicator columns, the cluster plot showed more structure, although the clusters still had too much
    _____
    .
    Hint

    The clusters were not yet clearly separated from one another.

    Answer

    overlap

    Explanation

    The improved plot began to show shape in the data, but substantial overlap between clusters remained.

  39. 39
    The example used the R function
    _____
    to automate repeated clustering attempts and improve cluster separation.
    Hint

    This function runs the clustering process in an automated way.

    Answer

    k-means runs

    Explanation

    The speaker used k-means runs, from a clustering package, to optimize how the clusters looked.

  40. 40
    The example used
    _____
    to represent the shape of the data and indicate variability in the cluster definitions.
    Hint

    These summarize variation in data and were used to visualize cluster shape.

    Answer

    principal components

    Explanation

    The principal components suggested that meaningful variability in the cluster definitions was emerging.

  41. 41
    An Azure Machine Learning compute instance is similar to a virtual machine and comes with tools such as JupyterLab, Jupyter, and
    _____
    .
    Hint

    This is the R development environment the speaker emphasized.

    Answer

    RStudio

    Explanation

    The described compute instance has pre-installed Jupyter tools and RStudio, allowing browser-based work.

  42. 42
    When using Azure rather than SQL Server ML Services, the notebook example needed the
    _____
    package installed before checkpointing.
    Hint

    This package supports pinning the R environment to a particular time.

    Answer

    checkpoint

    Explanation

    The speaker says that in Azure, the checkpoint package must be installed first, requiring one additional line.

  43. 43
    Azure Machine Learning can provide access to both notebooks and the underlying
    _____
    handled by the service.
    Hint

    This is the information the analysis uses and that can be shared within the workspace.

    Answer

    data

    Explanation

    The speaker describes sharing access to notebooks as well as the underlying data managed by Azure ML.

  44. 44
    If machine-learning work requires more computing power, it can be run on a larger compute cluster, including an R
    _____
    cluster.
    Hint

    This is a framework commonly associated with distributed data processing.

    Answer

    Spark

    Explanation

    The speaker notes that work can be scaled to larger compute resources, including an R Spark cluster in Azure ML.

  45. 45
    Using a hosted compute instance lets data scientists spend more time on data science and less on configuring Docker, Kubernetes, and other
    _____
    .
    Hint

    This broad category includes the technical setup required to run the environment.

    Answer

    infrastructure

    Explanation

    Pre-installed cloud tools reduce the setup burden of IDEs, Docker, and Kubernetes so data scientists can focus on their analysis.

  46. 46
    The cloud and local RStudio setups work similarly, but may differ in the libraries and
    _____
    available in each environment.
    Hint

    These extend the capabilities of the R environment.

    Answer

    packages

    Explanation

    The speaker says the setup and work are essentially the same, subject to differences in installed libraries and packages.

  47. 47
    Microsoft-specific machine-learning techniques mentioned for SQL Server include the Microsoft ML package and the
    _____
    package.
    Hint

    This package is named alongside Microsoft ML for proprietary techniques.

    Answer

    RevoScaleR

    Explanation

    The speaker identifies Microsoft ML and RevoScaleR as options for fast, more proprietary machine learning in SQL Server.

1 of 47
Question 1 of 47

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent