mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 01:17:28 +08:00
Fix import order of normalizing_flow (#326)
This commit is contained in:
parent
2287294723
commit
ce7b65e8c4
@ -1,7 +1,7 @@
|
||||
# Copyright © 2023-2024 Apple Inc.
|
||||
|
||||
from typing import Tuple, Optional, Union
|
||||
import math
|
||||
from typing import Optional, Tuple, Union
|
||||
|
||||
import mlx.core as mx
|
||||
|
||||
|
@ -1,11 +1,10 @@
|
||||
# Copyright © 2023-2024 Apple Inc.
|
||||
|
||||
from typing import Tuple, Optional, Union
|
||||
from typing import Optional, Tuple, Union
|
||||
|
||||
import mlx.core as mx
|
||||
import mlx.nn as nn
|
||||
|
||||
from bijectors import MaskedCoupling, AffineBijector
|
||||
from bijectors import AffineBijector, MaskedCoupling
|
||||
from distributions import Normal
|
||||
|
||||
|
||||
|
@ -1,15 +1,13 @@
|
||||
# Copyright © 2023-2024 Apple Inc.
|
||||
|
||||
from tqdm import trange
|
||||
import numpy as np
|
||||
from sklearn import datasets, preprocessing
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
import mlx.core as mx
|
||||
import mlx.nn as nn
|
||||
import mlx.optimizers as optim
|
||||
|
||||
import numpy as np
|
||||
from flows import RealNVP
|
||||
from sklearn import datasets, preprocessing
|
||||
from tqdm import trange
|
||||
|
||||
|
||||
def get_moons_dataset(n_samples=100_000, noise=0.06):
|
||||
|
Loading…
Reference in New Issue
Block a user