chromium/components/segmentation_platform/embedder/default_model/feed_user_segment.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/segmentation_platform/embedder/default_model/feed_user_segment.h"

#include <array>

#include "base/metrics/field_trial_params.h"
#include "base/task/sequenced_task_runner.h"
#include "components/segmentation_platform/internal/metadata/metadata_writer.h"
#include "components/segmentation_platform/public/config.h"
#include "components/segmentation_platform/public/constants.h"
#include "components/segmentation_platform/public/features.h"
#include "components/segmentation_platform/public/model_provider.h"
#include "components/segmentation_platform/public/proto/model_metadata.pb.h"

namespace segmentation_platform {

namespace {

SegmentId;

// Default parameters for feed user model.
constexpr int kModelVersion =;
constexpr SegmentId kFeedUserSegmentId =;
constexpr int64_t kFeedUserSignalStorageLength =;
constexpr int64_t kFeedUserMinSignalCollectionLength =;
constexpr int kFeedUserSegmentSelectionTTLDays =;

// InputFeatures.

// The enum values are based on feed::FeedEngagementType.
constexpr std::array<int32_t, 1> kFeedEngagementEngaged{};
constexpr std::array<int32_t, 1> kFeedEngagementSimple{};
constexpr std::array<int32_t, 1> kFeedEngagementInteracted{};
constexpr std::array<int32_t, 1> kFeedEngagementScrolled{};

constexpr std::array<MetadataWriter::UMAFeature, 11> kFeedUserUMAFeatures =;

std::unique_ptr<DefaultModelProvider> GetFeedUserSegmentDefautlModel() {}

}  // namespace

// static
std::unique_ptr<Config> FeedUserSegment::GetConfig() {}

FeedUserSegment::FeedUserSegment() :{}

std::unique_ptr<DefaultModelProvider::ModelConfig>
FeedUserSegment::GetModelConfig() {}

void FeedUserSegment::ExecuteModelWithInput(
    const ModelProvider::Request& inputs,
    ExecutionCallback callback) {}

}  // namespace segmentation_platform