/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 197182b170fb
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { FTClassifierLossFunction$outboundSchema, } from "./ftclassifierlossfunction.js";
/** @internal */
export const ClassifierTarget$outboundSchema = z.object({
    name: z.string(),
    labels: z.array(z.string()),
    weight: z.number().default(1),
    lossFunction: z.nullable(FTClassifierLossFunction$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        lossFunction: "loss_function",
    });
});
export function classifierTargetToJSON(classifierTarget) {
    return JSON.stringify(ClassifierTarget$outboundSchema.parse(classifierTarget));
}
//# sourceMappingURL=classifiertarget.js.map