# Liftoff! How to get started with your first ML project 🚀

huggingface.co · Nima Boscarino · Jun 29, 2022

**Type:** Tutorial

## Summary

Beginners in machine learning frequently face difficulties when selecting a framework and defining the scope of their initial hands-on project. Sentence Transformers provides an accessible starting point by computing dense vector representations for sentences, paragraphs, and images, enabling semantic search through cosine similarity. A structured four-step strategy guides practitioners through listing library capabilities, identifying compelling datasets, selecting a familiar secondary tool, and brainstorming project concepts. Applying this framework, a song lyrics dataset was paired with Gradio Blocks to build a prompt-based playlist generator. Developing this application required evaluating pre-trained models, hosting generated embeddings on Hugging Face Spaces, and utilizing multi-processor support to accelerate embedding generation.

## Context

Newcomers to machine learning often struggle with two obstacles: choosing the right library to learn among many options, and properly scoping their first self-driven project to maximize learning.

## Approach / What changed

Adopt Sentence Transformers as an entry point to embeddings and semantic search, followed by a four-step project creation recipe: catalog the tool's capabilities, identify interesting datasets, pair it with a single secondary tool already partially mastered, and brainstorm combinations of these elements.

## Takeaways

- Sentence Transformers converts arbitrary text into dense vector embeddings that can be compared using built-in cosine similarity utility functions to power semantic search.
- A structured recipe for initial ML projects involves mapping tool capabilities, sourcing interesting data, integrating one familiar secondary tool, and ideating application concepts.
- Building a lyric-matching playlist generator required selecting pre-trained models, hosting embeddings on the Hugging Face Hub, and using multi-processor support to accelerate embedding generation.

**Tags:** [Machine Learning](https://yomu.fyi/topic/machine-learning), [Open Source](https://yomu.fyi/topic/open-source), [Python](https://yomu.fyi/topic/python), [Search](https://yomu.fyi/topic/search)

[Read original post](https://huggingface.co/blog/your-first-ml-project)
