Analogy making as amortised model construction