---
title: "Learning rate animated icon"
description: "Learning rate animated icon (Model training & fine-tuning). The learning rate steps down on its schedule. Light: the second step size drops to its shorter length and stops dead, and the third follows a beat later and drops further. Strong: a step decay in two milestones: at the first both later steps drop to the middle length in turn, and at the second the last step halves again. The first step stays fixed; the sizes are data and never overshoot."
canonical: https://generativeicons.com/icons/learning-rate/
---

# Learning rate animated icon

The learning rate steps down on its schedule. Light: the second step size drops to its shorter length and stops dead, and the third follows a beat later and drops further. Strong: a step decay in two milestones: at the first both later steps drop to the middle length in turn, and at the second the last step halves again. The first step stays fixed; the sizes are data and never overshoot.

- Id: `learning-rate`
- Category: Model training & fine-tuning
- Search terms: lr, lr schedule, lr decay, step size, step decay, decay schedule, scheduler, annealing, cosine annealing, warmup, optimizer, optimiser
- Two states: constant-rate to decay-schedule, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/learning-rate.lottie (dotLottie, 5881 bytes, sha256 e28b75c24fb277047a14c662338ea94801d055a5184a481f6c8d1098ea82513a)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add learning-rate
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/learning-rate.mjs';

export function LearningRateIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/learning-rate.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/learning-rate/ · https://generativeicons.com/api/icons/learning-rate
